Get-VM | Get-HardDisk | Where {$_.Filename -like '*vmdk-name*'} | Select Parent, FilenameIf the disk is in use you should get a response similar to
Parent Filename
------ --------
VMName [SAN] VMName/vmdk-name.vmdk
VMName [SAN] VMName/vmdk-name_1.vmdk
VMName [SAN] VMName/vmdk-name_2.vmdk
No comments:
Post a Comment