Administrator Guide
$dummyVms = $VHDMap[$vhd.ParentDisk.ID].split(",");
foreach($dummyVm in $dummyVms)
{
if($VmsWithParentVHDs[$dummyVm] -eq $null)
{
$VmsWithParentVHDs.Add($dummyVm,"1")
}
}
}
else
{
$VHDMap.Add($vhd.ParentDisk.ID , $vm.Name)
}
}
}
}
if($VmsWithParentVHDs[$vmname])
{
Write-Host "The VM has a parent VHD configuration."
}
else
{
Write-Host "The VM does not have a parent VHD configuration."
}
The script output indicates whether the VM has a parent VHD conguration.
Recovering a VM with no parent VHD conguration
To recover a VM with no parent VHD conguration, that is, a VM that uses a dierencing disk, do the following.
1 Case 1, the VM is corrupted but not deleted:
a In the VMM console, shut down the VM that you want to recover.
b Use the steps in Recovering a VM to its original location to recover the VM.
c From the VMM console, start the VM.
2 Case 2, the VM is deleted:
a Use the steps in Recovering a VM to an alternate location to recover the VM.
b From the VMM console, start the VM.
78
Operations