Remove-DPMDisk
Removes a disk from a storage pool.
Parameter Set: Default
Remove-DPMDisk [-DPMDisk] <Disk[]> [-Confirm] [-WhatIf] [ <CommonParameters>]
The Remove-DPMDisk cmdlet removes a disk from a storage pool. A storage pool in System Center 2012 – Data Protection Manager (DPM) consists of a set of disks where the DPM server stores replicas, shadow copies, and transfer logs for protected data sources.
To get a list of all disks on a DPM server, use the Get-DPMDisk cmdlet.
Specifies an array of disks that this cmdlet removes from a storage pool.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
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 |
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
The input type is the type of the objects that you can pipe to the cmdlet.
The output type is the type of the objects that the cmdlet emits.
- Disk
The first command uses the Get-DPMDisk cmdlet to retrieve the disks on a server, and stores them in the $DpmDisk variable.
The second command uses the Remove-DPMDisk cmdlet to remove the disks in $DpmDisk from the server storage pool.
PS C:\> $DpmDisk = Get-DPMDisk -DPMServerName "Contoso-DPMServer"
PS C:\> Remove-DPMDisk -DPMDisk $DpmDisk