Disable-DPMLibrary

Disables DPM libraries.

Syntax

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

Description

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.

Examples

Example 1: Disable libraries for a named server

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.

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. 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