From 28cce30f5dcd43a6b69ab6691e9003f5174532bd Mon Sep 17 00:00:00 2001 From: kabir1439 <43441952+kabir1439@users.noreply.github.com> Date: Sat, 8 Jun 2024 17:34:32 +0530 Subject: [PATCH] set-volume, enable-pnpdevice, get-dedupproperties: add pages (#12831) Signed-off-by: K.B.Dharun Krishna Co-authored-by: spageektti Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna --- pages/windows/enable-pnpdevice.md | 21 +++++++++++++++++++++ pages/windows/get-dedupproperties.md | 17 +++++++++++++++++ pages/windows/set-volume.md | 21 +++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 pages/windows/enable-pnpdevice.md create mode 100644 pages/windows/get-dedupproperties.md create mode 100644 pages/windows/set-volume.md diff --git a/pages/windows/enable-pnpdevice.md b/pages/windows/enable-pnpdevice.md new file mode 100644 index 000000000..f4d55687a --- /dev/null +++ b/pages/windows/enable-pnpdevice.md @@ -0,0 +1,21 @@ +# Enable-PnpDevice + +> The Enable-PnpDevice cmdlet enables a Plug and Play (PnP) device. You must use an Administrator account to enable a device. +> Note: This command can only be used through PowerShell. +> More information: . + +- Enable a device: + +`Enable-PnpDevice -InstanceId 'RETRIEVED USING Get-PnpDevice COMMAND'` + +- Enable all disabled PnP devices: + +`Get-PnpDevice | Where-Object {$_.Problem -eq 22} | Enable-PnpDevice` + +- Enable a device without confirmation: + +`Enable-PnpDevice -InstanceId 'RETRIEVED USING Get-PnpDevice COMMAND' -Confirm:$False` + +- Dry run of what would happen if the cmdlet runs: + +`Enable-PnpDevice -InstanceId 'USB\VID_5986&;PID_0266&;MI_00\7&;1E5D3568&;0&;0000' -WhatIf:$True` diff --git a/pages/windows/get-dedupproperties.md b/pages/windows/get-dedupproperties.md new file mode 100644 index 000000000..63aa73a16 --- /dev/null +++ b/pages/windows/get-dedupproperties.md @@ -0,0 +1,17 @@ +# Get-DedupProperties + +> Gets Data Deduplication information. +> Note: This command can only be used through PowerShell. +> More information: . + +- Get Data Deduplication information of the drive: + +`Get-DedupProperties -DriveLetter 'C'` + +- Get Data Deduplication information of the drive using the drive label: + +`Get-DedupProperties -FileSystemLabel 'Label'` + +- Get Data Dedpulication information of the drive using the input object: + +`Get-DedupProperties -InputObject $(Get-Volume -DriveLetter 'E')` diff --git a/pages/windows/set-volume.md b/pages/windows/set-volume.md new file mode 100644 index 000000000..85152c433 --- /dev/null +++ b/pages/windows/set-volume.md @@ -0,0 +1,21 @@ +# Set-Volume + +> Sets or changes the file system label of an existing volume. +> Note: This command can only be used through PowerShell. +> More information: . + +- 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`