Created
October 23, 2012 23:15
-
-
Save hh/3942412 to your computer and use it in GitHub Desktop.
ec2 user data file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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