Rename-Drive : Renaming Drives with PowerShell & WMI

by Jan 28, 2009

Shane Burton from Compellant just asked me to help him rename a drive with PowerShell. It's possible to rename drives using a couple of different WMI classes, Win32_Volume , and Win32_LogicalDisk . You change the drive by setting a property name on the WMI Object (Label in Win32_Volume, and VolumeName in Win32_LogicalDisk), and then putting it back in the WMI repository with the Put() method. @", … Read the full text.