Created
April 17, 2013 19:00
-
-
Save kernelsmith/5406827 to your computer and use it in GitHub Desktop.
winrm basic config
This file contains 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
rem config_winrm.bat | |
rem This script assumes WinRM 2.0 has been installed on XP. WinRM 2.0 | |
rem should already be installed on Windows > XP | |
rem The quickconfig command used to fail if the firewall was disabled. | |
rem Hopefully they fixed that problem. It didn't present the last time | |
rem I ran quickconfig with the disabled firewall | |
rem For more information on WinRM, please visit Microsoft's WinRM site: | |
rem http://msdn.microsoft.com/en-us/library/aa384426(v=VS.85).aspx | |
winrm quickconfig | |
winrm set winrm/config/client/auth @{Basic="true"} | |
winrm set winrm/config/service/auth @{Basic="true"} | |
winrm set winrm/config/service @{AllowUnencrypted="true"} | |
rem The following should show a service listening | |
netstat -an | findstr "5985" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To confirm settings, instead of set them:
winrm get winrm/config/client/auth
winrm get winrm/config/service/auth
winrm get winrm/config/service