vhd

Hi Guys, This is was not a simple task… because of Get-VMHardDiskDrive can’t give you the size of the drive. $VMget=Get-VM -ComputerName (Get-ClusterNode -Cluster ClusterName) | Get-VMHardDiskDrive | Select-Object -Property vmname, vmid, computername, controllertype, controllernumber,controllerlocation,path foreach ($VM in $VMget) { $VHDRemotePath=$VM.Path -replace “:”, “$” $VHDRemotePath=”\\”+$VM.ComputerName+”\”+$VHDRemotePath $vhdsize= Get-ChildItem $VHDRemotePath | select-object…