Enable-DPMLibrary
Enables DPM libraries.
Syntax
Enable-DPMLibrary
[-DPMLibrary] <Library[]>
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Enable-DPMLibrary cmdlet enables one or more System Center - 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.
Examples
Example 1: Enable libraries for a named server
PS C:\>$DpmLibrary = Get-DPMLibrary -DPMServerName "DPMServer07"
PS C:\> Enable-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 enables the libraries stored in $DpmLibrary.
Parameters
-Confirm
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 |
-DPMLibrary
Specifies an array of DPM library objects that this cmdlet enables. 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 |
-PassThru
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 |
-WhatIf
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 |
Outputs
Library