Summary: Learn how to use Windows PowerShell and WMI to change a disk label.
How can I use Windows PowerShell with WMI to change the disk label on a logical disk?
Beginning with Windows PowerShell 3.0, use the Get-CimInstance cmdlet to retrieve
the logical disk, and then use the Set-CimInstance cmdlet to set the VolumeName:
Get-CimInstance win32_logicaldisk -Filter "deviceID = 'c:'" |
Set-CimInstance -Property @{volumename = 'SSD'}
Note This technique requires you to start the Windows PowerShell console with elevated rights.