Skip to content

Instantly share code, notes, and snippets.

@jen20
Forked from jimcroft/gist:3878113
Last active August 29, 2015 14:17
Show Gist options
  • Save jen20/1fba6bd445a26d4e7181 to your computer and use it in GitHub Desktop.
Save jen20/1fba6bd445a26d4e7181 to your computer and use it in GitHub Desktop.
<powershell>
winrm quickconfig -q
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="300"}'
winrm set winrm/config '@{MaxTimeoutms="1800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow
netsh advfirewall firewall add rule name="WinRM 5986" protocol=TCP dir=in localport=5986 action=allow
net stop winrm
sc config winrm start=auto
net start winrm
</powershell>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment