UserData:
|
"Fn::Base64":
|
"Fn::Join":
|
- ""
|
- - "<powershell>\n"
|
- "Get-ScheduledTask *ngen* | Disable-ScheduledTask\n"
|
- "reg add 'HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\WindowsUpdate\\Auto Update' /v AUOptions /t REG_DWORD /d 1 /f\n"
|
- "net stop wuauserv\n"
|
- "net start wuauserv\n"
|
- "Set-MpPreference -DisableRealtimeMonitoring $true\n"
|
- "$admin = [adsi]('WinNT://./administrator, user')\n"
|
- "$admin.PSBase.Invoke('SetPassword', '{{windows_password}}')\n"
|
- "Invoke-WebRequest -Uri https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 -OutFile C:\\ConfigureRemotingForAnsible.ps1\n"
|
- "C:\\ConfigureRemotingForAnsible.ps1 -ForceNewSSLCert -EnableCredSSP -GlobalHttpFirewallAccess\n"
|
- "</powershell>"
|