Enable-DPMLibrary
Enable-DPMLibrary
Enables DPM libraries.
Syntax
Parameter Set: Default
Enable-DPMLibrary [-DPMLibrary] <Library[]> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Enable-DPMLibrary cmdlet enables one or more System Center 2012 – Data Protection Manager (DPM) libraries. You can use the Disable-DPMLibrary cmdlet to disable a tape library in order to perform maintenance or repairs, and then use this cmdlet to enable it for use.
Parameters
-DPMLibrary<Library[]>
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 |
-PassThru
Indicates that the cmdlet generates output. By default, this cmdlet does not generate output. You can use the PassThru parameter in order to use the cmdlet in a pipeline.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
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, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
- Library
Notes
- For more information, type "
Get-Help Enable-DPMLibrary -detailed
".
Examples
Example 1: Enable libraries for a named server
This example enables the libraries associated with the server named DPMServer07. The first command uses the Get-DPMLibrary cmdlet to get the tape libraries for the specified server, and stores those objects in the $DPMLib variable.
The second command enables the libraries stored in the $DPMLib variable.
PS C:\> $DPMLib = Get-DPMLibrary -DPMServerName "DPMServer07"
PS C:\> Enable-DPMLibrary -DPMLibrary $DPMLib