You can use PEBuilder to customize machines by running custom bat scripts at specified points in the provisioning workflow.
- Create or identify the bat script you want to use.
Your script must return a non-zero value on failure to prevent machine provisioning failure.
- Save the script as NN_scriptname.
NN is a two digit number. Scripts are executed in order from lowest to highest. If two scripts have the same number, the order is alphabetical based on scriptname.
- Make your script executable.
- Place the scripts in the work item subdirectory that corresponds to the point in the provisioning workflow you want the script to run.
For example, C:\Program Files (x86)\VMware\vRA\PE Builder\Plugins\VRM Agent\VRMGuestAgent\site\SetupOS.
The agent runs the script in the order specified by the work item directory and the script file name.