In the process of re-organizing naming structure of a set of Cluster Shared Volumes, I had a need to rename the volume upon an iSCSI disk that was presented to the cluster.
Originally I sourced this article which requires a drive letter associated with the volume in order to find the proper object.
Following that, I came across this article which had the syntax I needed in the last post.
Here’s the script I used successfully:
$drive = gwmi win32_volume -filter "Label = 'Old Name'" $drive.Label = "New Name" $drive.put() |