共用方式為


Remove-DPMRecoveryTarget

語法

Remove-DPMRecoveryTarget
      [-DpmRole] <DpmRole>
      [-Type] <AmDatasourceType>
      [[-RecoveryTargets] <String[]>]
      [-All]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

範例

1:

PS C:\>

2:

PS C:\>

參數

-All

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

-Confirm

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

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

-DpmRole

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

-RecoveryTargets

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

-Type

類型:AmDatasourceType
接受的值:SqlDatabase, SqlInstance
Position:2
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-WhatIf

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

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