Last active
August 29, 2015 14:20
-
-
Save gildas/d3a9d71ea5a9a240140a to your computer and use it in GitHub Desktop.
Configure winrm for unix/mac winrm clients
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setlocal EnableDelayedExpansion EnableExtensions | |
| title Configuring Windows Remote Management... | |
| cmd /c net stop winrm | |
| cmd /c winrm quickconfig -q | |
| cmd /c winrm quickconfig -transport:http | |
| cmd /c winrm set winrm/config @{MaxTimeoutms="1800000"} | |
| cmd /c winrm set winrm/config/winrs @{MaxMemoryPerShellMB="2048"} | |
| cmd /c winrm set winrm/config/service @{AllowUnencrypted="true"} | |
| cmd /c winrm set winrm/config/service/auth @{Basic="true"} | |
| cmd /c winrm set winrm/config/listener?Address=*+Transport=HTTP @{Port="5985"} | |
| cmd /c sc config winrm start= auto | |
| cmd /c net start winrm | |
| cmd /c netsh firewall set service type=remoteadmin mode=enable | |
| cmd /c netsh advfirewall firewall set rule group="remote administration" new enable=yes | |
| cmd /c netsh advfirewall firewall add rule name="Port 5985" dir=in action=allow protocol=TCP localport=5985 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment