Skip to content

Instantly share code, notes, and snippets.

@jstangroome
Created September 28, 2013 05:25
Show Gist options
  • Save jstangroome/6738659 to your computer and use it in GitHub Desktop.
Save jstangroome/6738659 to your computer and use it in GitHub Desktop.
A batch script to perform the equivalent of the PowerShell command 'Enable-WSManCredSSP -Role Server' when Negotiate authentication has been disabled for WinRM
winrm.cmd g winrm/config/service/auth -r:$env:computername -a:kerberos
winrm.cmd s winrm/config/service/auth -r:$env:computername -a:kerberos @{CredSSP="true"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment