Set-DPMAutoProtectIntent
開啟或關閉 SQL Server 實例的 DPM 自動保護。
語法
Set-DPMAutoProtectIntent
[-ProtectionGroup] <ProtectionGroup>
[-SQLInstanceName] <String[]>
[-AutoProtectIntent] <AutoProtectionIntent>
[-AutoProtectCloudIntent] <Enable/Disable>
[-ProductionServer] <ProductionServer>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Set-DPMAutoProtectIntent Cmdlet 會開啟或關閉 Microsoft SQL Server 數據管理軟體實例的 System Center - Data Protection Manager (DPM) 自動保護。 當您針對 SQL Server 實例使用自動保護時,DPM 會識別並保護新增至該實例的新資料庫。 若要變更自動保護設定,請指定 SQL Server 實例、其所屬的保護群組,以及生產伺服器。
當您第一次將 SQL Server 實例新增至保護群組時,DPM 伺服器會啟用該實例的自動保護。
範例
1:
參數
-AutoProtectCloudIntent
指定 Commandlet 是否開啟或關閉 Cloud 自動保護。 如果設定為 [啟用],保護群組中所有設定為自動保護的數據源都會自動保護至雲端。 如果設定為 [停用],自動保護至雲端將會停止。
此參數可接受的值為:啟用和停用。
類型: | AutoProtectCloudIntent |
Position: | 4 |
預設值: | Disable |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-AutoProtectIntent
指定 Cmdlet 是否開啟或關閉自動保護。
此參數可接受的值為:啟用和停用。
類型: | AutoProtectionIntent |
接受的值: | Enable, Disable |
Position: | 3 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | False |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ProductionServer
指定安裝 DPM 保護代理程式的電腦。
類型: | ProductionServer |
Position: | 5 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ProtectionGroup
指定此 Cmdlet 運作所在的保護群組。 若要取得 ProtectionGroup 物件,請使用 Get-DPMProtectionGroup Cmdlet。
類型: | ProtectionGroup |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-SQLInstanceName
指定 SQL Server 實例名稱的陣列。
類型: | String[] |
Position: | 2 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-WhatIf
顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | False |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |