Extract the DiskName & FriendlyVolumeName from a Hyper-V Host For a Cluster Share Volume

1
2
3
4
5

 

<#Hi Guys Sharing with you all a script which i created to Extract the DiskName & FriendlyVolumeName from a Hyper-V Host
Copy paste the one liner in an elevated Powershell window on a Clustered Hyper-V host.#>
 
import-module FailoverClusters
Get-ClusterSharedVolume | select name, @{l="FriendlyVolumeName";e={Get-ClusterSharedVolume $_.name | select -expandproperty sharedvolumeinfo | select -expandproperty friendlyvolumename}},state | ft -autosize

Share this post

Post Comment