Set-CMBaselineDeployment
Changes settings for a Configuration Manager baseline deployment.
Syntax
SetBaselineDeploymentByValueMandatory (Default)
Set-CMBaselineDeployment
-InputObject <IResultObject>
[-EnableEnforcement <Boolean>]
[-GenerateAlert <Boolean>]
[-MonitoredByScom <Boolean>]
[-OverrideServiceWindow <Boolean>]
[-ParameterValue <Int32>]
[-PostponeDateTime <DateTime>]
[-Schedule <IResultObject>]
[-PassThru]
[-Collection <IResultObject>]
[-CollectionId <String>]
[-CollectionName <String>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
SetBaselineDeploymentByIdMandatory
Set-CMBaselineDeployment
-BaselineId <String>
[-EnableEnforcement <Boolean>]
[-GenerateAlert <Boolean>]
[-MonitoredByScom <Boolean>]
[-OverrideServiceWindow <Boolean>]
[-ParameterValue <Int32>]
[-PostponeDateTime <DateTime>]
[-Schedule <IResultObject>]
[-PassThru]
[-Collection <IResultObject>]
[-CollectionId <String>]
[-CollectionName <String>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
SetBaselineDeploymentByNameMandatory
Set-CMBaselineDeployment
-BaselineName <String>
[-EnableEnforcement <Boolean>]
[-GenerateAlert <Boolean>]
[-MonitoredByScom <Boolean>]
[-OverrideServiceWindow <Boolean>]
[-ParameterValue <Int32>]
[-PostponeDateTime <DateTime>]
[-Schedule <IResultObject>]
[-PassThru]
[-Collection <IResultObject>]
[-CollectionId <String>]
[-CollectionName <String>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Set-CMBaselineDeployment cmdlet changes settings for a 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. 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 New-CMBaselineDeployment cmdlet to create a deployment.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Examples
Example 1: Change whether a deployment generates alerts
PS XYZ:\> 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 XYZ:\> 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.
Parameters
-BaselineId
Specifies the ID of a baseline.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
SetBaselineDeploymentByIdMandatory
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-BaselineName
Specifies the name of a baseline.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
SetBaselineDeploymentByNameMandatory
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Collection
The Set-CMBaselineDeployment cmdlet changes settings for a 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. 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 New-CMBaselineDeployment cmdlet to create a deployment.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Parameter properties
Type: | IResultObject |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-CollectionId
The Set-CMBaselineDeployment cmdlet changes settings for a 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. 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 New-CMBaselineDeployment cmdlet to create a deployment.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-CollectionName
Specifies the name of a collection. The deployment applies to this collection.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | True |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Confirm
Prompts you for confirmation before running the cmdlet.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | cf |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-DisableWildcardHandling
This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-EnableEnforcement
Specifies whether to enable enforcement for the baseline. During enforcement, a client reports compliance information about the configurations in a baseline.
Parameter properties
Type: | Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ForceWildcardHandling
This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-GenerateAlert
Specifies whether Configuration Manager generates alerts during the deployment.
Parameter properties
Type: | Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-InputObject
The Set-CMBaselineDeployment cmdlet changes settings for a 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. 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 New-CMBaselineDeployment cmdlet to create a deployment.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Parameter properties
Type: | IResultObject |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | Baseline, DeploymentSummary, Assignment |
Parameter sets
SetBaselineDeploymentByValueMandatory
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-MonitoredByScom
Specifies whether to apply System Center 2016 - Operations Manager monitoring criteria during the deployment.
Parameter properties
Type: | Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-OverrideServiceWindow
Specifies whether to override service windows while deploying policies. Service windows are periods of time allocated for maintenance.
Parameter properties
Type: | Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ParameterValue
Specifies an integer value. This is the parameter value.
Parameter properties
Type: | Int32 |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-PassThru
Add this parameter to return an object that represents the item with which you're working. By default, this cmdlet may not generate any output.
Parameter properties
Type: | SwitchParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-PostponeDateTime
The Set-CMBaselineDeployment cmdlet changes settings for a 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. 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 New-CMBaselineDeployment cmdlet to create a deployment.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Parameter properties
Type: | DateTime |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Schedule
Specifies a CMSchedule object. The schedule specifies when the maintenance window occurs. To create a CMSchedule object, use the New-CMSchedule cmdlet.
Parameter properties
Type: | IResultObject |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet doesn't run.
Parameter properties
Type: | SwitchParameter |
Default value: | False |
Supports wildcards: | False |
DontShow: | False |
Aliases: | wi |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.