Skip to content

Commit da1d60b

Browse files
Merge pull request #309 from mannahusum/main
Reach winrm on public ip from anywhere
2 parents 7a1f938 + 198503f commit da1d60b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/enable-winrm.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ winrm set winrm/config/service/auth '@{Basic="true"}'
1212
winrm set winrm/config/client/auth '@{Basic="true"}'
1313
winrm set winrm/config/listener?Address=*+Transport=HTTP '@{Port="5985"}'
1414
netsh advfirewall firewall set rule group="Windows Remote Administration" new enable=yes
15-
netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=allow
15+
netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" new enable=yes action=allow remoteip=any
1616
Set-Service winrm -startuptype "auto"
1717
Restart-Service winrm

0 commit comments

Comments
 (0)