Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Getting Labels and Paths of disks under a mountpoint using WMI

$
0
0

Hello Guys,

I need to extract  the drive names and their paths (including drives under a mountpoint) in a windows cluster resource grup (disk dependency) , Now my issue is I am getting the drive dependencies as clusterdisk1, clusterdisk2  using Microsoftcluster_resource class in a mountpoint.

All I want is to get the drive labels and their paths for the disks ie..clusterdisk1, clusterdisk2.

Is there any way that I can relate/compare clusteredisk1 to disk labes via WMI classes...

for example If I query a disk dependency on a resource. I am getting the information as clusterdisk1,clusterdisk2, and so on...., where as at windows level they are giving names lyk M:\Data and N:\Log (where M is the mountpoint).. so is there anyway i can relate the clusterdisk1 is whether M:\Data or N:\Log and get that information............


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>