Set-CMBaselineDeployment

Changes settings for a Configuration Manager baseline deployment.

Syntax

Set-CMBaselineDeployment
   -Baseline <IResultObject>
   -CollectionName <String>
   [-Confirm]
   [-DisableWildcardHandling]
   [-EnableEnforcement <Boolean>]
   [-ForceWildcardHandling]
   [-GenerateAlert <Boolean>]
   [-MonitoredByScom <Boolean>]
   [-OverrideServiceWindow <Boolean>]
   [-ParameterValue <Int32>]
   [-PostponeDate <DateTime>]
   [-PostponeTime <DateTime>]
   [-Schedule <IResultObject>]
   [-WhatIf]
   [<CommonParameters>]
Set-CMBaselineDeployment -BaselineId  -CollectionName  [-Confirm] [-DisableWildcardHandling]
 [-EnableEnforcement ] [-ForceWildcardHandling] [-GenerateAlert ]
 [-MonitoredByScom ] [-OverrideServiceWindow ] [-ParameterValue ]
 [-PostponeDate ] [-PostponeTime ] [-Schedule ] [-WhatIf]
 []
Set-CMBaselineDeployment -BaselineName  -CollectionName  [-Confirm] [-DisableWildcardHandling]
 [-EnableEnforcement ] [-ForceWildcardHandling] [-GenerateAlert ]
 [-MonitoredByScom ] [-OverrideServiceWindow ] [-ParameterValue ]
 [-PostponeDate ] [-PostponeTime ] [-Schedule ] [-WhatIf]
 []

Description

The Set-CMBaselineDeployment cmdlet changes settings for a Microsoft System Center Configuration Manager baseline configuration deployment. A baseline defines the configuration of a product or system established at a specific time. Baselines contain a defined set of required configurations and associated rules. System Center Configuration Manager assigns baselines to computer in collections, together with a compliance evaluation schedule.

Use the baseline and the name of a collection to specify a deployment to modify. You can specify a baseline by its name or ID, or use the Get-CMBaseline cmdlet to get a baseline object.

You can use the Start-CMBaselineDeployment cmdlet to begin a deployment.

Examples

Example 1: Change whether a deployment generates alerts

PS C:\> Set-CMBaselineDeployment -BaselineName "Baseline 2012" -CollectionName "All Computers" -GenerateAlert $False

This command changes a deployment for the baseline named Baseline 2012 for a collection named All Computers. This command sets the GenerateAlert parameter to $False.

Example 2: Change deployment settings

PS C:\> Set-CMBaselineDeployment -BaselineName "Baseline A3" -CollectionName "TSQA Computers" -GenerateAlert $True -MonitoredByScom $True -ParameterValue 60 -PostponeDate 2013/02/12 -PostponeTime 12:34

This command changes a deployment for the baseline named Baseline A3 for a collection named TSQA Computers. The command specifies values for generation of alerts and Operations Manager monitoring. It also includes as a parameter value and postpone date and time.

Required Parameters

-Baseline

Specifies a baseline object. To obtain a baseline object, use the Get-CMBaseline cmdlet.

Type:IResultObject
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-BaselineId

Specifies the ID of a baseline.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-BaselineName

Specifies the name of a baseline.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CollectionName

Specifies the name of a collection. The deployment applies to this collection.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EnableEnforcement

Specifies whether to enable enforcement for the baseline. During enforcement, a client reports compliance information about the configurations in a baseline.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-GenerateAlert

Specifies whether Configuration Manager generates alerts during the deployment.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MonitoredByScom

Specifies whether to apply System Center 2016 - Operations Manager monitoring criteria during the deployment.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-OverrideServiceWindow

Specifies whether to override service windows while deploying policies. Service windows are periods of time allocated for maintenance.

Type:Boolean
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ParameterValue

Specifies an integer value. This is the parameter value.

Type:Int32
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PostponeDate

Specifies a date, as a DateTime object. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type Get-Help Get-Date. This is the date for the deployment if it is postponed.

Type:DateTime
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PostponeTime

Specifies a time, as a DateTime object. To obtain a DateTime object, use the Get-Date cmdlet. This is the time for the deployment if it is postponed.

Type:DateTime
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Schedule

Specifies a CMSchedule object. The schedule specifies when the maintenance window occurs. To create a CMSchedule object, use the New-CMSchedule cmdlet.

Type:IResultObject
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Required:False
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False