mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
6 lines
210 B
PowerShell
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>
|