Skip to content

Instantly share code, notes, and snippets.

@vinyar
Last active August 29, 2015 14: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 vinyar/f37905a2e52040643766 to your computer and use it in GitHub Desktop.
Save vinyar/f37905a2e52040643766 to your computer and use it in GitHub Desktop.
Opening up WinRm for Chef bottstrap to work
# Get the instance ready for our bootstrapper, commands courtesy of Julian Dunn
winrm quickconfig -q;
Enable-PSRemoting -force;
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 set rule name="Windows Remote Management (HTTP-In)" profile=public protocol=tcp localport=5985 new remoteip=any;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment