Set-CMBaseline

Changes the settings of configuration baselines.

Syntax

Set-CMBaseline
   -Id <Int32>
   [-NewName <String>]
   [-Description <String>]
   [-AddCategory <String[]>]
   [-RemoveCategory <String[]>]
   [-DesiredConfigurationDigestPath <String>]
   [-ClearRequiredConfigurationItem]
   [-ClearProhibitedConfigurationItem]
   [-ClearOptionalConfigurationItem]
   [-ClearOSConfigurationItem]
   [-ClearSoftwareUpdate]
   [-ClearBaseline]
   [-RemoveRequiredConfigurationItem <String[]>]
   [-RemoveProhibitedConfigurationItem <String[]>]
   [-RemoveOptionalConfigurationItem <String[]>]
   [-RemoveOSConfigurationItem <String[]>]
   [-RemoveSoftwareUpdate <String[]>]
   [-RemoveBaseline <String[]>]
   [-AddRequiredConfigurationItem <String[]>]
   [-AddProhibitedConfigurationItem <String[]>]
   [-AddOptionalConfigurationItem <String[]>]
   [-AddOSConfigurationItem <String[]>]
   [-AddSoftwareUpdate <String[]>]
   [-AddBaseline <String[]>]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMBaseline
   -InputObject <IResultObject>
   [-NewName <String>]
   [-Description <String>]
   [-AddCategory <String[]>]
   [-RemoveCategory <String[]>]
   [-DesiredConfigurationDigestPath <String>]
   [-ClearRequiredConfigurationItem]
   [-ClearProhibitedConfigurationItem]
   [-ClearOptionalConfigurationItem]
   [-ClearOSConfigurationItem]
   [-ClearSoftwareUpdate]
   [-ClearBaseline]
   [-RemoveRequiredConfigurationItem <String[]>]
   [-RemoveProhibitedConfigurationItem <String[]>]
   [-RemoveOptionalConfigurationItem <String[]>]
   [-RemoveOSConfigurationItem <String[]>]
   [-RemoveSoftwareUpdate <String[]>]
   [-RemoveBaseline <String[]>]
   [-AddRequiredConfigurationItem <String[]>]
   [-AddProhibitedConfigurationItem <String[]>]
   [-AddOptionalConfigurationItem <String[]>]
   [-AddOSConfigurationItem <String[]>]
   [-AddSoftwareUpdate <String[]>]
   [-AddBaseline <String[]>]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-CMBaseline
   -Name <String>
   [-NewName <String>]
   [-Description <String>]
   [-AddCategory <String[]>]
   [-RemoveCategory <String[]>]
   [-DesiredConfigurationDigestPath <String>]
   [-ClearRequiredConfigurationItem]
   [-ClearProhibitedConfigurationItem]
   [-ClearOptionalConfigurationItem]
   [-ClearOSConfigurationItem]
   [-ClearSoftwareUpdate]
   [-ClearBaseline]
   [-RemoveRequiredConfigurationItem <String[]>]
   [-RemoveProhibitedConfigurationItem <String[]>]
   [-RemoveOptionalConfigurationItem <String[]>]
   [-RemoveOSConfigurationItem <String[]>]
   [-RemoveSoftwareUpdate <String[]>]
   [-RemoveBaseline <String[]>]
   [-AddRequiredConfigurationItem <String[]>]
   [-AddProhibitedConfigurationItem <String[]>]
   [-AddOptionalConfigurationItem <String[]>]
   [-AddOSConfigurationItem <String[]>]
   [-AddSoftwareUpdate <String[]>]
   [-AddBaseline <String[]>]
   [-PassThru]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-CMBaseline cmdlet changes the settings of one or more configuration baselines in Microsoft System Center Configuration Manager.

Examples

Example 1: Add a membership to a security scope of a configuration baseline

PS C:\> Set-CMBaseline -SecurityScopeAction AddMembership -SecurityScopeName "SecScope02" -Name "BLineContoso01"

This command adds membership to the security scope named SecScope02 for the configuration baseline named BLineContoso01.

Example 2: Remove membership from a security scope of a configuration baseline

PS C:\> Set-CMBaseline -SecurityScopeAction RemoveMembership -SecurityScopeName "SecScope02" -Name "BLineContoso01"

This command removes membership to the security scope named SecScope02 for the configuration baseline named BLineContoso01.

Required Parameters

-Id

Specifies an array of IDs of configuration baselines.

Type:Int32
Aliases:CIId, CI_ID
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InputObject

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

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

Specifies an array of names of configuration baselines.

Type:String
Aliases:LocalizedDisplayName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AddBaseline
Type:String[]
Aliases:AddBaselines
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddCategory

Specifies an array of names of configuration categories to add to the configuration baselines.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddOSConfigurationItem
Type:String[]
Aliases:AddOSConfigurationItems
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddOptionalConfigurationItem
Type:String[]
Aliases:AddOptionalConfigurationItems
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddProhibitedConfigurationItem
Type:String[]
Aliases:AddProhibitedConfigurationItems
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddRequiredConfigurationItem
Type:String[]
Aliases:AddRequiredConfigurationItems
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddSoftwareUpdate
Type:String[]
Aliases:AddSoftwareUpdates
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearBaseline
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearOSConfigurationItem
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearOptionalConfigurationItem
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearProhibitedConfigurationItem
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearRequiredConfigurationItem
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClearSoftwareUpdate
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

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

Specifies a description of the configuration baseline.

Type:String
Aliases:LocalizedDescription
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DesiredConfigurationDigestPath

Specifies a path to the configuration data stored as a digest.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

ForceWildcardHandling processes wildcard characters and may lead to unexpected behavior (not recommended). Cannot be combined with DisableWildcardHandling.

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

Specifies a new name for the configuration baseline.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PassThru

Returns the current working object. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveBaseline
Type:String[]
Aliases:RemoveBaselines
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveCategory

Specifies an array of names of configuration categories to remove from the configuration baselines.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveOSConfigurationItem
Type:String[]
Aliases:RemoveOSConfigurationItems
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveOptionalConfigurationItem
Type:String[]
Aliases:RemoveOptionalConfigurationItems
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveProhibitedConfigurationItem
Type:String[]
Aliases:RemoveProhibitedConfigurationItems
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveRequiredConfigurationItem
Type:String[]
Aliases:RemoveRequiredConfigurationItems
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RemoveSoftwareUpdate
Type:String[]
Aliases:RemoveSoftwareUpdates
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
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False