Set-Volume

Sets or changes the file system label of an existing volume. Note: This command can only be used through PowerShell. More information: https://learn.microsoft.com/powershell/module/storage/set-volume.

Set-Volume -DriveLetter "D" -NewFileSystemLabel "DataVolume"

Set-Volume -FileSystemLabel "OldLabel" -NewFileSystemLabel "NewLabel"

Set-Volume -InputObject $(Get-Volume -DriveLetter "E") -NewFileSystemLabel "Backup"

Set-Volume -DriveLetter "D" -DedupMode Backup