PowerShell Logo Small

Set-PhysicalDisk



This is the built-in help made by Microsoft for the command 'Set-PhysicalDisk', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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] [-CimSession <CimSession[]>] [-Description <String>] [-MediaType <MediaType>] [-NewFriendlyName <String>] [-ThrottleLimit <Int32>] [-Usage <Usage>]
-UniqueId <String> [<CommonParameters>]
Set-PhysicalDisk [-FriendlyName] <String> [-AsJob] [-CimSession <CimSession[]>] [-Description <String>] [-MediaType <MediaType>] [-NewFriendlyName <String>] [-ThrottleLimit
<Int32>] [-Usage <Usage>] [<CommonParameters>]
Set-PhysicalDisk [-AsJob] [-CimSession <CimSession[]>] [-Description <String>] [-MediaType <MediaType>] [-NewFriendlyName <String>] [-ThrottleLimit <Int32>] [-Usage <Usage>]
-InputObject <CimInstance[]> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-PhysicalDisk cmdlet sets attributes on a specific physical disk in a storage pool, other than the primordial pool when using Storage Spaces.


When using the Storage Spaces subsystem, this cmdlet only works on physical disks that have been added to a storage pool.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=307033
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.