Set-AutoProtectIntent
Set-AutoProtectIntent
Turns the auto-protection setting for a SQL Server instance on or off.
Syntax
Set-AutoProtectIntent [-ProductionServer] <ProductionServer> [-SQLInstanceName] <String> [-AutoProtectIntent] <AutoProtectIntent> [-ProtectionGroup] <ProtectionGroup> [<CommonParameters>]
Detailed Description
The Set-AutoProtectIntent cmdlet turns the auto-protection setting for a SQL Server instance on or off.
Parameters
-ProductionServer
A server that has a DPM agent installed on it.
Attributes
Name | Value |
---|---|
Required? |
true |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByValue) |
Position? |
3 |
-SQLInstanceName
The SQL Server instance for which you want to set auto-protection or retrieve auto-protection setting.
Attributes
Name | Value |
---|---|
Required? |
true |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByValue) |
Position? |
1 |
-AutoProtectIntent
Indicates whether auto-protection should be turned on or off.
Attributes
Name | Value |
---|---|
Required? |
true |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
false |
Position? |
2 |
-ProtectionGroup
The name of a protection group.
Attributes
Name | Value |
---|---|
Required? |
true |
Accept wildcard characters? |
false |
Accept Pipeline Input? |
true (ByValue) |
Position? |
0 |
-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-HelpSet-AutoProtectIntent -detailed".
For technical information, type "Get-Help Set-AutoProtectIntent -full".Additionally, any updated information about the cmdlet will be available at https://go.microsoft.com/fwlink/?LinkId=95130.