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


$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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s