Enable-DPMTapeDrive
Enable-DPMTapeDrive
Enables the tape drives in the DPM library.
構文
Parameter Set: Default
Enable-DPMTapeDrive [-TapeDrive] <Drive[]> [-PassThru] [-Confirm] [-WhatIf] [ <CommonParameters>]
詳細説明
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.
パラメーター
-PassThru
Indicates that the cmdlet is part of a pipeline. Use this parameter with DPM commands to return a related object in cases where there is no default output.
エイリアス |
none |
必須? |
false |
位置は? |
named |
既定値 |
none |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-TapeDrive<Drive[]>
Specifies an array of tape drives.
エイリアス |
none |
必須? |
true |
位置は? |
1 |
既定値 |
none |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Confirm
コマンドレットを実行する前に、ユーザーに確認を求めます。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-WhatIf
コマンドレットを実行するとどのような結果になるかを表示します。コマンドレットは実行されません。
必須? |
false |
位置は? |
named |
既定値 |
false |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
注
- For more information, type "
Get-Help Enable-DPMTapeDrive -detailed
".
例
Example 1: Enable a tape drive in a library
This example enables the tape drive in a library attached to Contoso-DPMServer.
The first command uses the Get-DPMLibrary cmdlet to retrieve the library, and stores the result in the variable named $DPMLib.
The second command uses the Get-Tape cmdlet to retrieve the list of the tapes in the library, and stores the result in the variable named $TapeDrive.
The third command uses the Enable-DPMTapeDrive cmdlet to enable the tape drive.
PS C:\> $DPMLib = Get-DPMLibrary -DPMServerName "Contoso-DPMServer"
PS C:\> $TapeDrive = Get-TapeDrive -DPMLibrary $DPMLib
PS C:\> Enable-DPMTapeDrive -TapeDrive $TapeDrive