Enable-DPMTapeDrive

Enables the tape drives in the DPM library.

Syntax

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

Description

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

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

Examples

Example 1: Enable a tape drive in a library

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

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.

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

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