Created
August 21, 2014 20:28
-
-
Save snobu/3b4a9d7791f4a18f1dd9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SetScript = { | |
| $rules = 'File and Printer Sharing (Echo Request - ICMPv6-In)', | |
| 'File and Printer Sharing (Echo Request - ICMPv4-In)' | |
| $rules.ForEach({ | |
| $netsh = "netsh.exe --% advfirewall firewall set rule name=`"$_`" new enable=YES" | |
| invoke-expression -Command ($netsh) | |
| }) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment