Skip to content

Commit

Permalink
Merge pull request #309 from mannahusum/main
Browse files Browse the repository at this point in the history
Reach winrm on public ip from anywhere
  • Loading branch information
StefanScherer committed Oct 13, 2021
2 parents 7a1f938 + 198503f commit da1d60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/enable-winrm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ winrm set winrm/config/service/auth '@{Basic="true"}'
winrm set winrm/config/client/auth '@{Basic="true"}'
winrm set winrm/config/listener?Address=*+Transport=HTTP '@{Port="5985"}'
netsh advfirewall firewall set rule group="Windows Remote Administration" new enable=yes
netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=allow
netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=allow remoteip=any
Set-Service winrm -startuptype "auto"
Restart-Service winrm

0 comments on commit da1d60b

Please sign in to comment.