Skip to content

Instantly share code, notes, and snippets.

@divyaimca
Forked from mapbutcher/EnableWinRm
Created October 22, 2019 03:18
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 divyaimca/b1b9ca040460936db55c0c3f44c01e46 to your computer and use it in GitHub Desktop.
Save divyaimca/b1b9ca040460936db55c0c3f44c01e46 to your computer and use it in GitHub Desktop.
Enable WinRM with basic auth
set-executionpolicy -executionpolicy remotesigned
winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="512"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment