VMware Cloud Community
diegolaz
Contributor
Contributor

How to add custom RunSynchronous to the unattended xml generated by VMWARE?

Hello, I'm usung an external tool (Saltstack with salt-cloud commands) and checking the cloned VM the unattende xml generated by VMWARE for the sysprep commnad has the below commnads.... is there a way to add my one custom command after those? (there is another section FirstLogonCommand that also has some commands and that part we can add commands to).

In other words, does anyone have any clue where do these 4 default RunSynchronousCommand wcm:action="add" get added or generated?

Or is it something VMWare has stored in a file or DB as a defualt unattended.xml/sysprep.xml (answer file) in case the user doesn't provide it?

Thanks!

<RunSynchronous>

            <RunSynchronousCommand wcm:action="add">

               <Path>C:\sysprep\guestcustutil.exe cleanBootExecute</Path>

               <Order>1</Order>

            </RunSynchronousCommand>

            <RunSynchronousCommand wcm:action="add">

               <Path>C:\sysprep\guestcustutil.exe restoreMountedDevices</Path>

               <Order>2</Order>

            </RunSynchronousCommand>

            <RunSynchronousCommand wcm:action="add">

               <Path>C:\sysprep\guestcustutil.exe flagComplete</Path>

               <Order>3</Order>

            </RunSynchronousCommand>

            <RunSynchronousCommand wcm:action="add">

               <Path>C:\sysprep\guestcustutil.exe deleteContainingFolder</Path>

               <Order>4</Order>

            </RunSynchronousCommand>

         </RunSynchronous>

0 Kudos
1 Reply
diegolaz
Contributor
Contributor

Any idea if this is even possible? or if there is an automation/scripting section that can better address this issue?

Thank you!

Diego

0 Kudos