PowerShell Logo Small

Set-PhysicalDisk



This is the built-in help made by Microsoft for the command 'Set-PhysicalDisk', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Sets attributes on a specific physical disk.

SYNTAX


Set-PhysicalDisk [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-Description <String>] [-NewFriendlyName <String>] [-ThrottleLimit
<Int32>] [-Usage <Usage>] -UniqueId <String> [<CommonParameters>]
Set-PhysicalDisk [-FriendlyName] <String> [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-Description <String>] [-NewFriendlyName
<String>] [-ThrottleLimit <Int32>] [-Usage <Usage>] [<CommonParameters>]
Set-PhysicalDisk [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-Description <String>] [-NewFriendlyName <String>] [-ThrottleLimit
<Int32>] [-Usage <Usage>] -InputObject <CimInstance[]> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-PhysicalDisk cmdlet sets attributes on a specific physical disk.



<

RELATED LINKS

Add-PhysicalDisk
Get-PhysicalDisk
Remove-PhysicalDisk
Reset-PhysicalDisk

REMARKS

<

Examples


Example 1: Change the friendly name of a physical disk

PS C:\> Set-PhysicalDisk -FriendlyName "PhysicalDisk4" -NewFriendlyName "PhysicalDiskInSlot5"



This example changes the friendly name of PhysicalDisk4 to PhysicalDiskInSlot5.




Example 2: Change the Usage of a physical disk

PS C:\> Set-PhysicalDisk -FriendlyName PhysicalDisk2 -Usage AutoSelect



This example changes the Usage property of PhysicalDisk2 to AutoSelect.