Autologon windows in Application Director

I had a customer who was trying to deploy a blueprint from Application Director and need autologon feature. The Endpoint is vCloud Director

AppD –> vCloud Director –> VM

When we deployed the VM directly from vCD (Request –> vCD –> VM) , autologon worked but same didn’t work from AppD (Request –> AppD –> vCD –>VM).

In the AppD documentation, I noticed that when we deploy from AppD, vCD Guest customization will be over-ridden.

So simple idea is to add a windows powershell script to add in AppD (AppD console –> Powershell script –>paste), below script flawlessly

[code]

$VMname= hostname

set-ItemProperty -Path ‘HKLM:SOFTWAREMicrosoftWindows NTCurrentVersionWinlogon’ -Name AutoAdminLogon -Value 1
set-ItemProperty -Path ‘HKLM:SOFTWAREMicrosoftWindows NTCurrentVersionWinlogon’ -Name DefaultUserName -Value Administrator
set-ItemProperty -Path ‘HKLM:SOFTWAREMicrosoftWindows NTCurrentVersionWinlogon’ -Name DefaultPassword -Value SWENGn2j4g5
set-ItemProperty -Path ‘HKLM:SOFTWAREMicrosoftWindows NTCurrentVersionWinlogon’ -Name DefaultDomainName -Value $VMname
set-ItemProperty -Path ‘HKLM:SOFTWAREMicrosoftWindows NTCurrentVersionWinlogon’ -Name ForceUnlockLogon -Value 1
set-ItemProperty -Path ‘HKLM:SOFTWAREMicrosoftWindows NTCurrentVersionWinlogon’ -Name AutoLogonCount -Value 100

[/code]