Disable-DPMTapeDrive

Disables a tape drive in the DPM library.

Syntax

Disable-DPMTapeDrive
       [-TapeDrive] <Drive[]>
       [-PassThru]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

The Disable-DPMTapeDrive cmdlet disables a tape drive in the System Center - Data Protection Manager (DPM) library.

Examples

Example 1: Disable a tape drive in a library

PS C:\>$DpmLibrary = Get-DPMLibrary -DPMServerName "Contoso-DPMServer"
PS C:\> $DpmTapeDrive = Get-DPMTapeDrive -DPMLibrary $DpmLibrary
PS C:\> Disable-DPMTapeDrive -TapeDrive $DpmTapeDrive

The first command uses the Get-DPMLibrary cmdlet to get the library, and then stores it in the $DpmLibrary variable.

The second command uses the Get-DPMTapeDrive cmdlet to get the tapes in the library, and then stores them in the $DpmTapeDrive variable.

The third command disables the tape drives in $DpmTapeDrive.

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

-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

-TapeDrive

Specifies an array of tape drives that this cmdlet disables.

Type:Drive[]
Position:1
Default value:None
Required:True
Accept pipeline input:True
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