1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 21:22:06 +02:00
tldr/pages/windows/set-volume.md
kabir1439 28cce30f5d
set-volume, enable-pnpdevice, get-dedupproperties: add pages (#12831)
Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: spageektti <git@spageektti.cc>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-06-08 14:04:32 +02:00

21 lines
759 B
Markdown

# 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>.
- 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 Backup`