VMware Cloud Community
hpnnwm
Contributor
Contributor

change password after deploying template

hi

I want to set a new password throw/after deploying the template.

we use the customization specification manager to set the IP address during the deploying wizard.

but unfortunately, there is nothing about password! it seems all the users should use the default password.

how could we specify a random password during the deploying template? or even is there any way to set a new password after OS boot up ? with VMware tools or ...

0 Kudos
1 Reply
Alex_Romeo
Leadership
Leadership

Hi,

Unfortunately the VM administrator password is unique to the template. The password to the local administrator is the same.

To replace it you have to act at the operating system level, with scripts, Laps, etc ...

There is a software called Laps that allows you to set the local administrator user with a random password (never the same)

Local Administrator Password Solution (LAPS):

Microsoft OS: "https://www.microsoft.com/en-us/download/details.aspx?id=46899"

OS Linux: "https://bgstack15.wordpress.com/2018/10/24/laps-for-linux/".

If in your environment I use the Group Policy Microsoft Laps is perfect.

Create a GPO with Laps that changes the password when the VM is first rebooted. I've used it many times and it works well.

Best Regards,

Alessandro Romeo

Blog: https://www.aleadmin.it/
0 Kudos