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 More...
Read the complete post at http://blogs.msdn.com/powershell/archive/2009/01/27/rename-drive-renaming-drives-with-powershell-wmi.aspx
Posted
Jan 27 2009, 03:31 PM
by
Windows PowerShell Blog