Have a new 7.5 vRA deployment and verifying the guest customisation using some custom properties to execute two scripts. This is purely for validation purposes that they'll execute. The custom properties are listed below.
VirtualMachine.Admin.UseGuestAgent True
VirtualMachine.Customize.WaitComplete True
VirtualMachine.Software0.Name Date
VirtualMachine.Sofware0.ScriptPath C:\date.cmd
VirtualMachine.Software1.Name IP info
VirtualMachine.Sofware1.ScriptPath C:\ipdetails.bat
The VM gets deployed successfully using the customisation spec and in the guestagent.log it lists the 2 scripts above but they don't actually execute. Executing these manually within the O/S completes successfully. The deployments are to W2012 currently.
Is something being missed in the configuration for custom properties as to why they're not running the script even though vRA seems to say they do?
The answer to your problem is staring you in the face. I missed it myself the first time. Let's see if you see it
VirtualMachine.Software0.Name Date
VirtualMachine.Sofware0.ScriptPath C:\date.cmd
With what user did you install/run the guest agent during the installation script?
It was installed as the local administrator and the service is running under 'local system'. The template from which the VMs are provisioned is not on the domain.
The answer to your problem is staring you in the face. I missed it myself the first time. Let's see if you see it
VirtualMachine.Software0.Name Date
VirtualMachine.Sofware0.ScriptPath C:\date.cmd
yes it is!!
Thanks a lot - staring me in the face is right!
Report back and let me know if that does it for you.
That worked - saved me a lot of headache!!
Thanks