Skip to content

Instantly share code, notes, and snippets.

@evandroamparo
Last active March 18, 2016 19:23
Show Gist options
  • Save evandroamparo/d2a88ed2196d3bbe7aa3 to your computer and use it in GitHub Desktop.
Save evandroamparo/d2a88ed2196d3bbe7aa3 to your computer and use it in GitHub Desktop.
# START iexplore.exe http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/evandroamparo/d2a88ed2196d3bbe7aa3/raw/boxstarter_test.ps1
reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /d 0 /t REG_DWORD /f /reg:64
winrm quickconfig -q
winrm quickconfig -transport:http
winrm set winrm/config '@{MaxTimeoutms="7200000"}'
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="0"}'
winrm set winrm/config/winrs '@{MaxProcessesPerShell="0"}'
winrm set winrm/config/winrs '@{MaxShellsPerUser="0"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
winrm set winrm/config/client/auth '@{Basic="true"}'
net stop winrm
sc.exe config winrm start= auto
net start winrm
netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment