Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

How to retreive the groupcomponent of MSCluster_ClusterSharedVolumeToPartition

$
0
0

I'm trying to find the CSV information by using the below WQL query. I pass in disk partition information to fetch the CSV information.

$csv = Get-WmiObject -Namespace "root/MSCluster" -Query "SELECT GroupComponent FROM MSCluster_ClusterSharedVolumeToPartition where PartComponent='MSCluster_DiskPartition.Name=`"C:\ClusterStorage\Volume1`"'"

Write-Host $csv.Name

Write-Host $csv.VolumeName

But doesn't seem to be working :(


Viewing all articles
Browse latest Browse all 6937

Trending Articles