Skip to content

Instantly share code, notes, and snippets.

@MinhTing
Forked from mapbutcher/EnableWinRm
Created March 12, 2020 21:47
Show Gist options
  • Save MinhTing/f40b3a92e9adebe096cee875149e74a2 to your computer and use it in GitHub Desktop.
Save MinhTing/f40b3a92e9adebe096cee875149e74a2 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