Sha256: bc3ff773ad369bc0271b43958ecb48dd3c9ea4ccbe787f111d3d8a82f91e0b45
Contents?: true
Size: 1.73 KB
Versions: 3
Compression:
Stored size: 1.73 KB
Contents
<powershell> write-output "Running User Data Script" write-host "(host) Running User Data Script" # set administrator password cmd.exe /c net user Administrator <%= @workstation_passwd %> cmd.exe /c net user chef <%= @workstation_passwd %> /add /LOGONPASSWORDCHG:NO cmd.exe /c net localgroup Administrators /add chef # RDP cmd.exe /c netsh advfirewall firewall add rule name="Open Port 3389" dir=in action=allow protocol=TCP localport=3389 cmd.exe /c reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f # WinRM write-output "Setting up WinRM" write-host "(host) setting up WinRM" cmd.exe /c winrm quickconfig -q cmd.exe /c winrm quickconfig '-transport:http' cmd.exe /c winrm set "winrm/config" '@{MaxTimeoutms="1800000"}' cmd.exe /c winrm set "winrm/config/winrs" '@{MaxMemoryPerShellMB="3072"}' cmd.exe /c winrm set "winrm/config/service" '@{AllowUnencrypted="true"}' cmd.exe /c winrm set "winrm/config/client" '@{AllowUnencrypted="true"}' cmd.exe /c winrm set "winrm/config/service/auth" '@{Basic="true"}' cmd.exe /c winrm set "winrm/config/client/auth" '@{Basic="true"}' cmd.exe /c winrm set "winrm/config/service/auth" '@{CredSSP="true"}' cmd.exe /c winrm set "winrm/config/listener?Address=*+Transport=HTTP" '@{Port="5985"}' cmd.exe /c netsh advfirewall firewall set rule group="remote administration" new enable=yes cmd.exe /c netsh firewall add portopening TCP 5985 "Port 5985" cmd.exe /c net stop winrm cmd.exe /c sc config winrm start= auto cmd.exe /c net start winrm cmd.exe /c wmic useraccount where "name='Administrator'" set PasswordExpires=FALSE cmd.exe /c wmic useraccount where "name='chef'" set PasswordExpires=FALSE set-executionpolicy -executionpolicy bypass -force </powershell>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wombat-cli-0.7.3 | generator_files/templates/bootstrap-aws.erb |
wombat-cli-0.7.2 | generator_files/templates/bootstrap-aws.erb |
wombat-cli-0.6.2 | generator_files/templates/bootstrap-aws.erb |