0 Replies Latest reply on Jun 7, 2019 12:17 PM by diegolaz

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

    diegolaz Lurker

      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>