Skip to content

Instantly share code, notes, and snippets.

@hh
Created October 23, 2012 23:15
Show Gist options
  • Select an option

  • Save hh/3942412 to your computer and use it in GitHub Desktop.

Select an option

Save hh/3942412 to your computer and use it in GitHub Desktop.
ec2 user data file
<script>
cmd /c winrm quickconfig -q > c:\winrm1.log
cmd /c winrm quickconfig -transport:http > c:\winrm2.log
cmd /c winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"} > c:\winrm3.log
cmd /c winrm set winrm/config/service @{AllowUnencrypted="true"} > c:\winrm4.log
cmd /c winrm set winrm/config/service/auth @{Basic="true"} > c:\winrm5.log
cmd /c netsh advfirewall firewall set rule group="remote administration" new enable=yes > c:\winrm6.log
cmd /c netsh advfirewall firewall set rule group="network discovery" new enable=yes > c:\winrm7.log
cmd /c net user Administrator Opscode2012
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment