does thse 2 lines need to be on the vm?
$driveD = Get-WmiObject -Class Win32_Volume -Filter "DriveLetter = 'D:'"
Set-WmiInstance -Input $driveD -Arguments @{DriveLetter="E:"; Label="Label"}
Can i run this with invoke-vmscript as a powershell script on the guest?