#jinja2: newline_sequence:'\r\n'
<powershell>
$admin = [adsi]("WinNT://./administrator, user")
$admin.PSBase.Invoke("SetPassword", "{{ ansible_password }}")
net user Administrator "{{ ansible_password }}"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Expression ((New-Object System.Net.Webclient).DownloadString('https://raw.githubusercontent.com/ansible/ansible-documentation/09f8d8dbdb7d2702269ac18ab953b271406cecb2/examples/scripts/ConfigureRemotingForAnsible.ps1'))
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
Stop-Transcript
</powershell>
<persist>true</persist>
