Share via


Enable-DPMTapeDrive

Enable-DPMTapeDrive

Enables the tape drives in the DPM library.

Syntax

Parameter Set: Default
Enable-DPMTapeDrive [-TapeDrive] <Drive[]> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Enable-DPMTapeDrive cmdlet enables the tape drives in the System Center 2012 – Data Protection Manager (DPM) library.

To determine if a tape drive is enabled, use the Get-DPMTapeDrive cmdlet.

Parameters

-PassThru

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

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-TapeDrive<Drive[]>

Specifies an array of tape drives that this cmdlet enables.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

true (ByValue)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

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.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Enable a tape drive in a library

The first command uses the Get-DPMLibrary cmdlet to get the library for the server named Contoso-DPMServer. The command stores the library in the $DpmLibrary variable.

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

The third command enables the tape drive.

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

Disable-DPMTapeDrive

Get-DPMLibrary

Get-DPMTapeDrive