Disable-TapeDrive

Disable-TapeDrive

Disables the specified tape drives in the library.

Syntax

Disable-TapeDrive [-TapeDrive] <Drive> [-Confirm] [-PassThru <SwitchParameter>] [<CommonParameters>]

Detailed Description

The Disable-TapeDrive cmdlet disables the specified tape drives in the library.

Parameters

-TapeDrive

Specifies the tape drive to use.

Attributes

Name Value

Required?

true

Accept wildcard characters?

false

Accept Pipeline Input?

true (ByValue)

Position?

0

-Confirm

Asks the user to confirm the action.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-PassThru

The -PassThru parameter can be used with many commands in DPM to return a related object in cases where there is no default output. Using the PassThru parameter allows such cmdlets to be part of a pipeline.

Attributes

Name Value

Required?

false

Accept wildcard characters?

false

Accept Pipeline Input?

false

Position?

named

-CommonParameter

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

Input and Return Types

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

Notes

  • For more information, type "Get-Help Disable-TapeDrive -detailed".
    For technical information, type "Get-Help Disable-TapeDrive -full".

    Additionally, any updated information about the cmdlet will be available at http://go.microsoft.com/fwlink/?LinkId=95130.

Examples

EXAMPLE 1

$DPMLib = Get-DPMLibrary -DPMServerName "TestingServer" 
Get-TapeDrive -DPMLibrary $DPMLib 
Disable-TapeDrive -TapeDrive $TapeDrive

This command disables the tape drive on TestingServer.