top of page

Set Administrator Password and Enable RDP on Windows VMs with VCF Automation

  • Writer: Brock Peterson
    Brock Peterson
  • Nov 26
  • 1 min read

We're deploying Windows VMs with VCF Automation, but would like to set the Administrator password and enable RDP as part of the deployment process, how can we do this? VM Customization Specifications, let's go!


In vCenter (I'm running 8.0.3 in this lab) go to Policies and Profiles - VM Customization Specifications.


ree

I've named mine Windows Customization Specification with a Target Guest OS of Windows.


ree

I set the Administrator password here.


ree

And turned on RDP here along with allowing the local firewall to allow RDP connections.


ree

The full command looks like this:

cmd.exe /c reg add "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0 /f && netsh advfirewall firewall set rule group="remote desktop" new enable=yes

Now that I have the VM Customization Specification I just need to call it from my VCF Automation Template/Blueprint.


ree

If you want the full Template/Blueprint you can get it here. One released to the Service Broker Catalog it'll look like this.


ree

I've requested a Windows VM using the Windows Customization Specification.


ree

Once deployed you'll see it in vCenter and can confirm your Administrator password has been set to what you configured in the Windows Customization Specification and that you can RDP into it.


Hope this was helpful, enjoy!




Comments


    bottom of page