469d22df97
Hi again. This commit removes a small portion of your script's own internal error checking. In specific: for the value of the profile: key. This is essential to avoid errors on other verisons of the windows operating system which are not win2008r2 (your version). For example: on win10 (and most likely win8x too), the names of the profiles don't include the values 'current' and 'all'. But instead the values are 'Public' 'Private' 'Domain' and 'Any. But in addition, there are also certain combinatorial values, such as profile=Public,Private etc. Which is too many to error check yourself. Yet removing the error checking here should not cause any ill effects however: since the netsh advfirewall ... cmds themselves to add / remove / modify actually to their own error checking of the profile=value. So when the cmd is run, it will error out itself with an appropriate / informative error msg. No harm done. Therefore please remove the highlighed portions from your own script. It is essential for interoperability with win10 and win8x. Many thanks. |
||
---|---|---|
.. | ||
__init__.py | ||
win_chocolatey.ps1 | ||
win_chocolatey.py | ||
win_dotnet_ngen.ps1 | ||
win_dotnet_ngen.py | ||
win_environment.ps1 | ||
win_environment.py | ||
win_firewall_rule.ps1 | ||
win_firewall_rule.py | ||
win_iis_virtualdirectory.ps1 | ||
win_iis_virtualdirectory.py | ||
win_iis_webapplication.ps1 | ||
win_iis_webapplication.py | ||
win_iis_webapppool.ps1 | ||
win_iis_webapppool.py | ||
win_iis_webbinding.ps1 | ||
win_iis_webbinding.py | ||
win_iis_website.ps1 | ||
win_iis_website.py | ||
win_nssm.ps1 | ||
win_nssm.py | ||
win_package.ps1 | ||
win_package.py | ||
win_regedit.ps1 | ||
win_regedit.py | ||
win_scheduled_task.ps1 | ||
win_scheduled_task.py | ||
win_unzip.ps1 | ||
win_unzip.py | ||
win_updates.ps1 | ||
win_updates.py | ||
win_webpicmd.ps1 | ||
win_webpicmd.py |