PowerShell Logo Small

Remove-PhysicalDisk



This is the built-in help made by Microsoft for the command 'Remove-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

Removes a physical disk from a specified storage pool.

SYNTAX


Remove-PhysicalDisk [[-VirtualDisk] <CimInstance>] [-AsJob] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [-VirtualDiskFriendlyName <String>] [-VirtualDiskName
<String>] [-VirtualDiskUniqueId <String>] -PhysicalDisks <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-PhysicalDisk [[-StoragePool] <CimInstance>] [-AsJob] [-CimSession <CimSession[]>] [-StoragePoolFriendlyName <String>] [-StoragePoolName <String>]
[-StoragePoolUniqueId <String>] [-ThrottleLimit <Int32>] -PhysicalDisks <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-PhysicalDisk cmdlet removes a physical disk from a specified storage pool.


If sufficient space does not exist in the storage pool to tolerate this removal, then data loss can result (the user is warned about this). If the user configuration allows,
then the user should add a replacement physical disk to the pool prior to removal of the old one.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkID=307016
Add-PhysicalDisk
Get-PhysicalDisk
Reset-PhysicalDisk
Set-PhysicalDisk
Get-StoragePool
Get-VirtualDisk

REMARKS

<

Examples


EXAMPLE 1

PS C:\> $PDToRemove = Get-PhysicalDisk -Friendlyname "PhysicalDisk25"
PS C:\> Remove-PhysicalDisk -PhysicalDisks $PDToRemove -StoragePoolFriendlyName "DemoPool"



This example removes a specific Physical Disk object from the specified storage pool.