Skip to content

Instantly share code, notes, and snippets.

@trevor-h
Created February 26, 2015 06:05
Show Gist options
  • Save trevor-h/8a9e965d0bdf829cf707 to your computer and use it in GitHub Desktop.
Save trevor-h/8a9e965d0bdf829cf707 to your computer and use it in GitHub Desktop.
To use with cloudbase-init, tested on Openstack
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