Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

Run script after VRMAgent activities in WinPE

$
0
0

I'm trying to figure out a way to run a batch script after the VRMAgent applies a WIM image but before it restarts the computer. Windows has the nasty habit of dropping partition info from the BCD when a WIM file is applied to a drive using imagex, which causes the initial boot to the newly applied image to fail. For years, we've circumvented the problem by simply firing off bcdedit commands to set the device and osdievice fields manually.

 

I can add a script to startnet.cmd to run after wpeinit but before VRMAgent, which I had to do to configure the drive partition and set the boot sector as leaving it to the agent results in boot errors. However, adding a script call to startnet.cmd after the VRMAgent call does no good since the agent script forces a reboot at the end, so the post script never gets called.

 

How can I either add additional commands to run after the WIM image is applied but before the server is rebooted, or remove the reboot component of the agent WIM provisioning activities altogether and add it to the end of my own post-application script?


Viewing all articles
Browse latest Browse all 179681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>