Merge pull request #13374 from hashicorp/winrm_firewall_port

Fix firewall command for WinRM HTTPS setup
pull/13375/head
Anurag Sharma 12 months ago committed by GitHub
commit 19fa630090
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -168,7 +168,7 @@ cmd.exe /c winrm set "winrm/config/listener?Address=*+Transport=HTTPS" "@{Port=`
# Make sure appropriate firewall port openings exist
cmd.exe /c netsh advfirewall firewall set rule group="remote administration" new enable=yes
cmd.exe /c netsh firewall add portopening TCP 5986 "Port 5986"
cmd.exe /c netsh advfirewall firewall add rule name="Port 5986" dir=in action=allow protocol=TCP localport=5986 profile=any
# Restart WinRM, and set it so that it auto-launches on startup.
cmd.exe /c net stop winrm

Loading…
Cancel
Save