Skip to content

Instantly share code, notes, and snippets.

@jjasghar
Forked from galenemery/Winrm_setup.ps1
Created September 22, 2016 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jjasghar/9f97647bf6a7669da963f65085c3ffaa to your computer and use it in GitHub Desktop.
Save jjasghar/9f97647bf6a7669da963f65085c3ffaa to your computer and use it in GitHub Desktop.
WinRM config
# On the remote node/server:
winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
# When NOT USING a domain-based authentication (i.e., from Linux/Unix to Windows node):
winrm set winrm/config/service/auth '@{Basic="true"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
# When USING a domain-based authentication (i.e., from Windows (workstation) to Windows node):
## On the remote server/node:
#winrm set winrm/config/service/auth '@{Basic="false"}'
#winrm set winrm/config/service '@{AllowUnencrypted="false"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment