Created
February 26, 2015 06:05
-
-
Save trevor-h/8a9e965d0bdf829cf707 to your computer and use it in GitHub Desktop.
To use with cloudbase-init, tested on Openstack
This file contains 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
New-NetFirewallRule -Name "SMB445" -DisplayName "SMB445" -Protocol TCP -LocalPort 445 | |
New-NetFirewallRule -Name "WINRM5986" -DisplayName "WINRM5986" -Protocol TCP -LocalPort 5986 | |
Set-Item (dir wsman:\localhost\Listener\*\Port -Recurse).pspath 445 -Force | |
Restart-Service winrm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment