Skip to content

Instantly share code, notes, and snippets.

@kernelsmith
Created April 17, 2013 19:00
Show Gist options
  • Save kernelsmith/5406827 to your computer and use it in GitHub Desktop.
Save kernelsmith/5406827 to your computer and use it in GitHub Desktop.
winrm basic config
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"
@kernelsmith
Copy link
Author

To confirm settings, instead of set them:
winrm get winrm/config/client/auth
winrm get winrm/config/service/auth
winrm get winrm/config/service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment