1
0

windows-firewall-winexe.ps1 210 B

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