Hi.
I'm trying to either create a new customization script or update an existing one via PowerCLI. The goal is to update the 'Customization Script' code so that each newly deployed machine runs a slightly modified script.
If I generate a customization script in the GUI and record the steps via the developer centre I get the following output:(I assume this is correct!!)
However, even when trying to execute this code manually, the Spec.Identity.ScriptText object can not be found..
"The property 'ScriptText' cannot be found on this object. Verify that the property exists and can be set."
Any ideas on what I may be doing wrong or is this just not possible right now?
Are you using PowerCLI 12.0?
The ScriptText property on the CustomizationLinuxPrep object is introduced in vSphere API 7.0
You need a PowerCLI version that supports vSphere 7, and contains the framework for the vSphere API 7.0.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Moderator: Moved to PowerCLI
Are you using PowerCLI 12.0?
The ScriptText property on the CustomizationLinuxPrep object is introduced in vSphere API 7.0
You need a PowerCLI version that supports vSphere 7, and contains the framework for the vSphere API 7.0.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Ah awesome. My fault for not checking. Cheers Luc.