salt/tests/integration/files/windows-firewall-winexe.ps1

6 lines
210 B
PowerShell
Raw Normal View History

<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>