Get-VM | Get-HardDisk -DiskType "RawPhysical","RawVirtual" | Select Parent, Name, DiskType, ScsiCanonicalName, DeviceName | FL Here is the output: Parent ...
See more...
Get-VM | Get-HardDisk -DiskType "RawPhysical","RawVirtual" | Select Parent, Name, DiskType, ScsiCanonicalName, DeviceName | FL Here is the output: Parent : Server1 Name : Hard disk 3 DiskType : RawPhysical ScsiCanonicalName : naa.600601600ae12800507484a92399e011 DeviceName : vml.0200000000600601600ae12800507484a92399e011565241494420 Parent : Server1 Name : Hard disk 4 DiskType : RawPhysical ScsiCanonicalName : naa.600601600ae1280092f135662399e011 DeviceName : vml.0200010000600601600ae1280092f135662399e011565241494420 Is it possible to set the ScsiCanonicalName so to the name of the VM and RDM, like the following: Parent : Server1 Name : Hard disk 3 DiskType : RawPhysical ScsiCanonicalName : Server1-RDM DeviceName : vml.0200000000600601600ae12800507484a92399e011565241494420