List Checkpoint, Configuration and Snapshot File Locations:
get-vm | select id,name,*location | ft -AutoSize
List the HardDrives attached into the Virtual Machines
get-vm | Get-VMHardDiskDrive | sort Path | select vmname,Path
List Checkpoint, Configuration and Snapshot File Locations:
get-vm | select id,name,*location | ft -AutoSize
List the HardDrives attached into the Virtual Machines
get-vm | Get-VMHardDiskDrive | sort Path | select vmname,Path
icacls <Path of .vhd or .avhd file> /grant "NT VIRTUAL MACHINE\<Virtual Machine ID from step 1>":(F)For example, to use the Virtual Machine ID that you noted in step 1, type the following command, and then press Enter:
icacls "E:\VMs\VMName\Disk0.vhd" /grant "NT VIRTUAL MACHINE\5FC5C385-BD98-451F-B3F3-1E50E06EE663":(F)