Script to find UUID of RDM Luns in Hyper-V

Script to find UUID of RDM Luns in Hyper-V

Posted on Updated on


Run the below command in the Powershell to get the ouput in the text format.

get-cluster ‘custername’ | Get-VM | Get-HardDisk -DiskType “RawPhysical”,”RawVirtual” | Select Parent,Name,DiskType,ScsiCanonicalName,DeviceName | fl | Out-File –FilePath C:\temp\RDM-list.txt

Advertisements