Set-CMBaseline

Changes the settings of configuration baselines.

Syntax

Set-CMBaseline
   [-AddCategory <String[]>]
   [-AddOSConfigurationItem <String[]>]
   [-AddOptionalConfigurationItem <String[]>]
   [-AddProhibitedConfigurationItem <String[]>]
   [-AddRequiredConfigurationItem <String[]>]
   [-Confirm]
   [-Description <String>]
   [-DesiredConfigurationDigestPath <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   -Id <Int32>
   [-NewName <String>]
   [-PassThru]
   [-RemoveCategory <String[]>]
   [-WhatIf]
   [<CommonParameters>]
Set-CMBaseline [-AddCategory ] [-AddOSConfigurationItem ]
 [-AddOptionalConfigurationItem ] [-AddProhibitedConfigurationItem ]
 [-AddRequiredConfigurationItem ] [-Confirm] [-Description ]
 [-DesiredConfigurationDigestPath ] [-DisableWildcardHandling] [-ForceWildcardHandling]
 -InputObject  [-NewName ] [-PassThru] [-RemoveCategory ] [-WhatIf]
 []
Set-CMBaseline [-AddCategory ] [-AddOSConfigurationItem ]
 [-AddOptionalConfigurationItem ] [-AddProhibitedConfigurationItem ]
 [-AddRequiredConfigurationItem ] [-Confirm] [-Description ]
 [-DesiredConfigurationDigestPath ] [-DisableWildcardHandling] [-ForceWildcardHandling] -Name 
 [-NewName ] [-PassThru] [-RemoveCategory ] [-WhatIf] []

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
Required:True
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
Required:True
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
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-AddCategory

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

Type:String[]
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddOSConfigurationItem
Type:String[]
Aliases:AddOSConfigurationItems
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddOptionalConfigurationItem
Type:String[]
Aliases:AddOptionalConfigurationItems
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddProhibitedConfigurationItem
Type:String[]
Aliases:AddProhibitedConfigurationItems
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-AddRequiredConfigurationItem
Type:String[]
Aliases:AddRequiredConfigurationItems
Required:False
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
Required:False
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
Required:False
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
Required:False
Position:Named
Default value:None
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
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

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

Specifies a new name for the configuration baseline.

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

Returns an object representing the item with which you are working. By default, this cmdlet does not generate any output.

Type:SwitchParameter
Required:False
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[]
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