I am currently working on a series of scripts that creates vm's from a csv file and then configure a number of options and setting all from a single source csv file.
The problem i am having is that when you create a VM from template or cloning the guest os (windows server 2008R2 and 2003 in this case) locks out and will not allow a log in till the password is changed.
This causes a major hiccup as most of my scripts depend on invokevmscript and when they try to log in with credentials they bounce back with incorrect credentials error.
If I manually log in and change the password to the exact same password, then all the scripts will run fine.
I have the problem narrowed down but i can't see a solution other than not using OScustomizationspec in the creation which is not an option for our production environment.
Possible ideas I have had include applying the OScustomizationspec after the scripts, or having a change password script run before the rest of the scripts but I haven't been able to develop anything like that.
Any help, tips or trick appreciated!