Disable-DPMLibrary
Disables DPM libraries.
Disable-DPMLibrary
[-DPMLibrary] <Library[]>
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
The Disable-DPMLibrary cmdlet disables one or more System Center - Data Protection Manager (DPM) libraries. You can use this cmdlet to disable a tape library in order to perform maintenance or repairs, and then use the Enable-DPMLibrary cmdlet to enable it for use.
PS C:\>$DpmLibrary = Get-DPMLibrary -DPMServerName "DPMServer07"
PS C:\> Disable-DPMLibrary -DPMLibrary $DpmLibrary
The first command uses the Get-DPMLibrary cmdlet to get the tape libraries for the specified server, and then stores those objects in the $DpmLibrary variable.
The second command disables the libraries stored in $DpmLibrary.
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies an array of DPM library objects. To obtain a DPM library object, use the Get-DPMLibrary cmdlet.
Type: | Library[] |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Library