Commit graph

170 commits

Author SHA1 Message Date
Dreamcat4
469d22df97 fix: The names of firewall profiles are different on win10 & win2008r2
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.
2015-10-05 21:53:11 +01:00
Dreamcat4
6c5a4a14ef fix: win10 - Add exception handling for 'Profiles:' textual output key name mismatch.
In win10 (and pribably win8x also):

The output of 'show rule' key includes the line "Profiles:<TAB>Public,Private".
Yet your script expects the key name printed out to be "Profile:<TAB>value".

This commit added the necessary exception handling to avoid flagging 'different=true' under the false circumstance. The key name to SET a firewall rule is still "profile=" and not "profiles=".

There is coming up another commit to fix the value handling for win10/win8. Which is another (different) error with the profile: key.
2015-10-05 21:36:24 +01:00
Dreamcat4
2654789af7 fix: fw rule names must always be quoted, to permit spaces ' ' and brackets '()'
Without this fix, the 'netsh' command gets name=Firewall Rule Name instead of name="Firewall Rule Name". Thus causing all sorts of havoc. Basic shell quoting rules seems to apply to Windows Powershell too. This is very much needed as many of windows 10's default firewall rules contain spaces and brackets () characters.
2015-10-05 21:10:59 +01:00
Brian Coca
ebbd7748b1 doc formatting fixes 2015-10-05 11:57:38 -04:00
Brian Coca
02b68be09d Merge pull request #854 from nitzmahone/win_updates_rewrite
win_updates rewrite for 2.0
2015-10-04 14:45:57 -04:00
Trond Hindenes
7c48fe617d added module author 2015-10-01 19:12:21 +02:00
Trond Hindenes
161b3cf1e1 fixes #984 2015-10-01 19:08:42 +02:00
Toshio Kuratomi
255666a09d Fix doc build 2015-09-30 19:57:20 -07:00
Greg DeKoenigsberg
22a3ec05e4 Merge pull request #1022 from trondhindenes/trondhindenes_win_chocolatey_improvements
win_chocolatey bugfixes
2015-09-30 16:26:45 -04:00
Greg DeKoenigsberg
5931e60d99 Merge pull request #695 from georgefrank/win_nssm
Adding win_nssm module
2015-09-30 16:15:36 -04:00
Greg DeKoenigsberg
ff0a38ea65 Merge pull request #665 from perzizzle/scheduledTask
Ability to add/remove scheduled task
2015-09-30 16:11:45 -04:00
Trond Hindenes
d7cc0f60c9 win_chocolatey bugfixes 2015-09-23 20:49:26 +02:00
Brian Coca
7f245e8c73 Merge pull request #318 from TimothyVandenbrande/win_fw
windows firewall control
2015-09-23 13:40:13 -04:00
TimothyVandenbrande
2d6303b368 upon request, added the license 2015-09-23 09:35:17 +02:00
Michael Perzel
123a2b25ed Remove duplicate action declaration. 2015-09-08 14:45:21 -05:00
Michael Perzel
a7675e6621 Note parameters that are not idempotent 2015-09-08 14:40:21 -05:00
Michael Perzel
685c935a37 Documentation updates 2015-09-08 14:36:11 -05:00
Michael Perzel
64416ff094 Fix logging of error message 2015-09-08 14:35:34 -05:00
Michael Perzel
de1696cb74 Add support for specifying user for scheduled task to run as 2015-09-08 14:16:30 -05:00
Michael Perzel
027dff6d3d Add support for command arguments 2015-09-08 13:37:39 -05:00
Michael Perzel
d0b4bc0dda Show order of operations with parenthesis 2015-09-08 11:20:35 -05:00
Michael Perzel
a9eb69b0fa Use helper methods to validate vars. Cleanup logic. 2015-09-08 11:18:26 -05:00
Toshio Kuratomi
6a3cf63351 correct documentation formatting 2015-09-05 08:55:34 -07:00
Brian Coca
b0b0ac1a58 Merge pull request #713 from trondhindenes/win_package
Added module win_package (was #618)
2015-09-04 12:42:55 -04:00
nitzmahone
29a80d3555 win_updates rewrite for 2.0
uses scheduled job to run under a local token (required for WU client)
supports check mode
no external PS module deps
2015-08-21 09:49:36 -07:00
gfrank
b75f7cc22b Move comments to the documentation 2015-08-20 13:57:03 -04:00
gfrank
9d68a1746f Remove unnecessary aliases arrays 2015-08-20 13:29:10 -04:00
gfrank
ee395ced4d Clean up unneeded comment and comma 2015-08-20 11:20:40 -04:00
Chris Church
6a7b2f5869 Workaround for bug in PowerShell Get-Website cmdlet. 2015-08-02 11:31:15 -04:00
Brian Coca
e30d8b84fe more doc fixes 2015-07-28 14:27:21 -04:00
Greg DeKoenigsberg
e1b15e6930 Merge pull request #438 from petemounce/win_webpicmd
win_webpicmd module for IIS module installation
2015-07-23 13:58:38 -04:00
Greg DeKoenigsberg
34bd09aae1 Merge pull request #440 from petemounce/win_dotnet_ngen
Create win_dotnet_ngen module
2015-07-23 13:54:34 -04:00
Peter Mounce
8128d42dcd re-submit @adematte's PR #278 against HEAD 2015-07-22 23:29:49 +01:00
Michael Perzel
681cdd1c12 Remove accidental newlines 2015-07-21 17:38:27 -05:00
Michael Perzel
cdb36ea0fc Cleanup enable/disable logic 2015-07-21 17:35:33 -05:00
Phil
b598161f46 minor doc fixes that had lingering description of deprecated functions 2015-07-17 22:15:57 -05:00
Brian Coca
cc305adfb6 minor doc fixes 2015-07-17 00:51:08 -04:00
Brian Coca
2754157d87 minor doc fixes 2015-07-17 00:48:33 -04:00
Trond Hindenes
a2166b60cb Added module win_package 2015-07-14 12:03:04 +02:00
Greg DeKoenigsberg
c6e069dead Merge pull request #174 from schwartzmx/module/win_unzip
win_unzip Module
2015-07-10 12:02:25 -04:00
gfrank
05d5d939e7 Adding nssm requirement note 2015-07-09 09:37:51 -04:00
gfrank
8a72cf6a1c Adding win_nssm module 2015-07-08 11:44:46 -04:00
Michael Perzel
3542e7d42d Update method to determine if task exists, add days of week parameter to weekly triggers 2015-07-07 11:55:46 -05:00
Adam Keech
389e59b970 Adding functionality to not only edit Values, but also Keys. 2015-07-06 16:22:55 -04:00
Adam Keech
e84666fd74 Renaming variables in win_regedit module to make more sense with actions that are happening. 2015-07-06 15:25:28 -04:00
Adam Keech
5a2a22bf68 Adding win_regedit module 2015-07-06 15:25:28 -04:00
Phil
311d73620b use convertto-bool for rm and recurse params 2015-07-06 11:55:41 -05:00
Timothy Vandenbrande
b0a637086f add version_added: "2.0" 2015-07-02 10:00:33 +02:00
Timothy Vandenbrande
d87da2ba2d renamed profile var 2015-07-02 09:19:08 +02:00
Michael Perzel
00d3a62907 Documentation updates 2015-06-30 12:24:00 -05:00