snippetbashTip
Set-Volume — Set or change the file system label of an existing volume. Note: This command can only be used throu
Viewed 0 times
thecommandset-volumeclichangefilesetsystem
windows
Problem
How to use the
Set-Volume command: Set or change 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>.Solution
Set-Volume — Set or change 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>.Change the file system label of a volume identified by drive letter:
Set-Volume -DriveLetter "D" -NewFileSystemLabel "DataVolume"Change the file system label of a volume identified by the system label:
Set-Volume -FileSystemLabel "OldLabel" -NewFileSystemLabel "NewLabel"Modify the properties of a volume using a volume object:
Set-Volume -InputObject $(Get-Volume -DriveLetter "E") -NewFileSystemLabel "Backup"Specify the Data Deduplication mode for the volume:
Set-Volume -DriveLetter "D" -DedupMode BackupCode Snippets
Change the file system label of a volume identified by drive letter
Set-Volume -DriveLetter "D" -NewFileSystemLabel "DataVolume"Change the file system label of a volume identified by the system label
Set-Volume -FileSystemLabel "OldLabel" -NewFileSystemLabel "NewLabel"Modify the properties of a volume using a volume object
Set-Volume -InputObject $(Get-Volume -DriveLetter "E") -NewFileSystemLabel "Backup"Specify the Data Deduplication mode for the volume
Set-Volume -DriveLetter "D" -DedupMode BackupContext
tldr-pages: windows/Set-Volume
Revisions (0)
No revisions yet.