< Back

Remove-PhysicalDisk

Wed Jan 30, 2019 6:03 pm

NAME Remove-PhysicalDisk



SYNOPSIS

Removes a physical disk from a specified storage pool.





SYNTAX

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 -StoragePoolFriendlyName <String> [-Confirm] [-WhatIf] [<CommonParameters>]



Remove-PhysicalDisk -StoragePoolName <String> [-Confirm] [-WhatIf] [<CommonParameters>]



Remove-PhysicalDisk -StoragePoolUniqueId <String> [-Confirm] [-WhatIf] [<CommonParameters>]



Remove-PhysicalDisk -VirtualDiskFriendlyName <String> [-Confirm] [-WhatIf] [<CommonParameters>]



Remove-PhysicalDisk -VirtualDiskName <String> [-Confirm] [-WhatIf] [<CommonParameters>]



Remove-PhysicalDisk -VirtualDiskUniqueId <String> [-Confirm] [-WhatIf] [<CommonParameters>]





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.





PARAMETERS

-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.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-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.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-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.



Required? true

Position? 1

Default value none

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-StoragePoolFriendlyName <String>

Specifies the friendly name of the storage pool from which to remove the physical disk.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-StoragePoolName <String>

Specifies the name of the storage pool from which to remove the physical disk.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-StoragePoolUniqueId <String>

Specifies the ID of the storage pool from which to remove the physical disk.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-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 PowerShell???? 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.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-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.



Required? true

Position? 1

Default value none

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-VirtualDiskFriendlyName <String>

Specifies the friendly name of the virtual disk from which to remove the physical disk.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-VirtualDiskName <String>

Specifies the name of the virtual disk from which to remove the physical disk.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-VirtualDiskUniqueId <String>

Specifies the ID of the virtual disk from which to remove the physical disk.



Required? true

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value false

Accept pipeline input? false

Accept wildcard characters? false



-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.



Required? false

Position? named

Default value false

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_PhysicalDisks

http://msdn.microsoft.com/library/windo ... 30532.aspx





You can use the pipeline operator to pass an array of MSFT_PhysicalDisk objects to the PhysicalDisks parameter



Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_StoragePool

http://msdn.microsoft.com/library/windo ... 30551.aspx





You can use the pipeline operator to pass an MSFT_StoragePool object to the StoragePool parameter.



Microsoft.Management.Infrastructure.CimInstance#ROOT/Microsoft/Windows/Storage/MSFT_VirtualDisk

http://msdn.microsoft.com/library/windo ... 30584.aspx





You can use the pipeline operator to pass an MSFT_VirtualDisk object to the VirtualDisk parameter.





OUTPUTS





This cmdlet does not generate output.





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.







RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=816458

Add-PhysicalDisk

Get-PhysicalDisk

Reset-PhysicalDisk

Set-PhysicalDisk

Get-StoragePool

Get-VirtualDisk





CommonParameters : True

WorkflowCommonParameters : False

details : @{name=Remove-StorageFaultDomain; noun=; verb=}

Syntax : @{syntaxItem=System.Object[]}

parameters : @{parameter=System.Object[]}

inputTypes : @{inputType=}

returnValues : @{returnValue=}

aliases : None



remarks : Get-Help cannot find the Help files for this cmdlet on this computer. It is displaying only partial help.

-- To download and install Help files for the module that includes this cmdlet, use Update-Help.

alertSet :

description :

examples :

Synopsis :

Remove-StorageFaultDomain [-VirtualDisk] <CimInstance#MSFT_VirtualDisk> -StorageFaultDomains

<CimInstance#MSFT_StorageFaultDomain[]> [-CimSession <CimSession>] [-ThrottleLimit <int>] [-AsJob] [<CommonParameters>]



Remove-StorageFaultDomain -VirtualDiskFriendlyName <string> -StorageFaultDomains <CimInstance#MSFT_StorageFaultDomain[]>

[-CimSession <CimSession>] [-ThrottleLimit <int>] [-AsJob] [<CommonParameters>]



Remove-StorageFaultDomain -VirtualDiskName <string> -StorageFaultDomains <CimInstance#MSFT_StorageFaultDomain[]> [-CimSession

<CimSession>] [-ThrottleLimit <int>] [-AsJob] [<CommonParameters>]



Remove-StorageFaultDomain -VirtualDiskUniqueId <string> -StorageFaultDomains <CimInstance#MSFT_StorageFaultDomain[]> [-CimSession

<CimSession>] [-ThrottleLimit <int>] [-AsJob] [<CommonParameters>]



Remove-StorageFaultDomain [-StorageTier] <CimInstance#MSFT_StorageTier> -StorageFaultDomains

<CimInstance#MSFT_StorageFaultDomain[]> [-CimSession <CimSession>] [-ThrottleLimit <int>] [-AsJob] [<CommonParameters>]



Remove-StorageFaultDomain -StorageTierFriendlyName <string> -StorageFaultDomains <CimInstance#MSFT_StorageFaultDomain[]>

[-CimSession <CimSession>] [-ThrottleLimit <int>] [-AsJob] [<CommonParameters>]



Remove-StorageFaultDomain -StorageTierUniqueId <string> -StorageFaultDomains <CimInstance#MSFT_StorageFaultDomain[]> [-CimSession

<CimSession>] [-ThrottleLimit <int>] [-AsJob] [<CommonParameters>]



ModuleName : Storage

nonTerminatingErrors :

xmlns:command : http://schemas.microsoft.com/maml/dev/command/2004/10

xmlns:dev : http://schemas.microsoft.com/maml/dev/2004/10

xmlns:maml : http://schemas.microsoft.com/maml/2004/10

Name : Remove-StorageFaultDomain

Category : Function

Component :

Role :

Functionality :