Remove-PhysicalDisk [-VirtualDisk*] <CimInstance> [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>]-PhysicalDisks* <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-PhysicalDisk [-StoragePool*] <CimInstance> [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>]-PhysicalDisks* <CimInstance[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-PhysicalDisk -StoragePool*FriendlyName <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-PhysicalDisk -StoragePool*Name <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-PhysicalDisk -StoragePool*UniqueId <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-PhysicalDisk -VirtualDisk*FriendlyName <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-PhysicalDisk -VirtualDisk*Name <String> [-Confirm] [-WhatIf] [<CommonParameters>]
Remove-PhysicalDisk -VirtualDisk*UniqueId <String> [-Confirm] [-WhatIf] [<CommonParameters>]
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.
-CimSession [<CimSession[]>]
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
-PhysicalDisks <CimInstance[]>
Accepts one or more PhysicalDisk objects as input. The Physical Disk CIM objects represent the physical disks to be removed from the storage pool.
-StoragePool <CimInstance>
Specifies a storage pool as a CimInstance object. The cmdlet removes the physical disk associated with storage pool that you specify. To obtain a storage pool object, use the Get-StoragePool cmdlet.
-StoragePoolFriendlyName <String>
Specifies the friendly name of the storage pool from which to remove the physical disk.
-StoragePoolName <String>
Specifies the name of the storage pool from which to remove the physical disk.
-StoragePoolUniqueId <String>
Specifies the ID of the storage pool from which to remove the physical disk.
-ThrottleLimit [<Int32>]
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is entered, then Windows PowerShellr calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
-VirtualDisk <CimInstance>
Specifies a virtual disk as a CimInstance object. The cmdlet removes the physical disk associated with virtual disk that you specify. To obtain a virtual disk object, use the Get-VirtualDisk cmdlet.
-VirtualDiskFriendlyName <String>
Specifies the friendly name of the virtual disk from which to remove the physical disk.
-VirtualDiskName <String>
Specifies the name of the virtual disk from which to remove the physical disk.
-VirtualDiskUniqueId <String>
Specifies the ID of the virtual disk from which to remove the physical disk.
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.Shows what would happen if the cmdlet runs. The cmdlet is not run.
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,ErrorAction, ErrorVariable, WarningAction, WarningVariable,OutBuffer, PipelineVariable, and OutVariable.
This work is licensed under a Creative Commons Attribution 4.0 International. It is attributed to Microsoft Corporation and can be found here.
PowerShell Commands