Enable-DPMLibrary

Enables DPM libraries.

Syntax

Enable-DPMLibrary [-DPMLibrary] <Library[]> [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]

Description

The Enable-DPMLibrary cmdlet enables one or more System Center 2016 - 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 (./Get-DPMLibrary.md)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

-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[]
Required:True
Position:1
Default value:None
Accept pipeline input:True (ByValue)
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
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.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Library