Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Disables DPM libraries.
Parameter Set: Default
Disable-DPMLibrary [-DPMLibrary] <Library[]> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]
The Disable-DPMLibrary cmdlet disables one or more System Center 2012 – 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.
Specifies an array of DPM library objects. To obtain a DPM library object, use the Get-DPMLibrary cmdlet.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
true (ByValue) |
Accept Wildcard Characters? |
false |
Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
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.
- Library
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.
PS C:\> $DpmLibrary = Get-DPMLibrary -DPMServerName "DPMServer07"
PS C:\> Disable-DPMLibrary -DPMLibrary $DpmLibrary