This script is used to "zero out" the development VM, update the DevDisk.vhdx image and then restart the VM, booting to the DevDisk.vhdx image. This is the one I use most often while iterating through development changes using the VM. The script takes a couple of parameters:
Instructs MDT to update the \DeploymentMedia1 folder, which forces an update to the WIM file used for image captures, among other things. This can take 20-30 minutes.
Instructs MDT to update the boot image for the main \DeploymentShare.ROOT share, which is used as the content for the MDTBOOT partition. This can take a bit, depending on what has changed.
The VM, if running will be stopped and its internal disk (disk 0) will be wiped completely (no partitions). The DevDisk.vhdx disk will be mounted and updated (after the actions of the UpdateMedia and UpdateBoot tasks, if specified). Then the VM will be launched and off it'll go. Mostly, this script just stops the VM and clears the main VHDX file before calling out over to the UpdateUSBDrive.ps1 script with the -UpdateDevDisk parameter plus either of the UpdateMedia or UpdateBoot options.