PowerCLI to get information about RDM connected to VM.

In my work environment when we use MS SQL, so we have to build failover clusters. This means the use of RDM (Raw Device Mappings) LUNs. So you have to connect the RDM LUNs to the first system and them connected them to the second system using the disk file names. This is not a big deal, but it is nice to speed this process of mapping the drive on the second system, and cut and paste is your friend.

With this it will get the name of the server you are working with, the disk file name, SCSI canonical name, SCSI ID, disk file name, and the disk size. With this output, you can easily cut and paste the disk file name into the second node without having to browse the datastore to find the VMDK pointer file to attach. Also have the SCSI node ID so you make make sure that they match on both nodes.

Thank you for the script. I tried this script by adding &{ } and I was able to import the output to csv. My question is how if i want to get details of multiple servers from list using Get-Content serverlist.txt