Share via


Disable-DPMTapeDrive

Disables a tape drive in the DPM library.

Syntax

Default (Default)

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.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PassThru

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TapeDrive

Specifies an array of tape drives that this cmdlet disables.

Parameter properties

Type:

Drive[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.