次の方法で共有


Enable-DPMTapeDrive

Enables the tape drives in the DPM library.

Syntax

Default (Default)

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.

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

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.