salt/tests/integration/files/windows-firewall-winexe.ps1
2018-03-28 15:16:54 -07:00

6 lines
210 B
PowerShell

<powershell>
New-NetFirewallRule -Name "SMB445" -DisplayName "SMB445" -Protocol TCP -LocalPort 445
Set-Item (dir wsman:\localhost\Listener\*\Port -Recurse).pspath 445 -Force
Restart-Service winrm
</powershell>