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).

Thank you!

<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>

Tags (3)
Reply
0 Kudos
1 Reply
diegolaz
Contributor
Contributor

Does anyone have any clue where do does 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 (answer file) in case the user doesn't provide it?

Thanks!

Reply
0 Kudos