共用方式為


Disable-DPMTapeDrive

停用 DPM 媒體櫃中的磁帶機。

語法

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

Description

Disable-DPMTapeDrive Cmdlet 會停用 System Center - Data Protection Manager (DPM) 連結庫中的磁帶機。

範例

範例 1:停用媒體櫃中的磁帶機

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

第一個命令會使用 Get-DPMLibrary Cmdlet 來取得連結庫,然後將它儲存在$DpmLibrary變數中。

第二個命令會使用 Get-DPMTapeDrive Cmdlet 來取得媒體櫃中的磁帶,然後將磁帶儲存在 $DpmTapeDrive 變數中。

第三個命令會停用$DpmTapeDrive中的磁帶機。

參數

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

類型:SwitchParameter
別名:cf
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False

-PassThru

會傳回 物件,代表您正在使用的專案。 根據預設,此 Cmdlet 不會產生任何輸出。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-TapeDrive

指定此 Cmdlet 停用的磁帶機陣列。

類型:Drive[]
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。

類型:SwitchParameter
別名:wi
Position:Named
預設值:False
必要:False
接受管線輸入:False
接受萬用字元:False