Array Setup and Networking
Showing results for 
Search instead for 
Did you mean: 

Windows Target - Drive mapping

Trusted Contributor

Windows Target - Drive mapping

Have any of you ever mapped a couple of volumes for say SQL Data and Logs and once you connect them in Windows you can't tell which one is which? Both are the same size but you want to make sure you match the label and performance policy you assigned in the Nimble UI. I have a solution in a PowerShell one liner! It's not something you would memorize but copy and paste is your friend here.

Get-WmiObject -Namespace ROOT\WMI -Class MSiSCSIInitiator_SessionClass | Select -Unique TargetName, @{Label="LegacyName"; Expression={$_.Devices[0].LegacyName}}

This will give an output something like this :

TargetName                                                  LegacyName

----------                                                  ---------- \\.\PhysicalDrive1 \\.\PhysicalDrive2

And done! These drive numbers will match up with the disk management MMC snap-in.