Set-CMBaseline

SYNOPSIS

Changes the settings of configuration baselines.

SYNTAX

SetByIdMandatory (Default)

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>]

SetByNameMandatory

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>]

SetByValueMandatory

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>]

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.

PARAMETERS

-AddBaseline

Type: String[]
Parameter Sets: (All)
Aliases: AddBaselines

Required: False
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[]
Parameter Sets: (All)
Aliases: 

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

-AddOSConfigurationItem

Type: String[]
Parameter Sets: (All)
Aliases: AddOSConfigurationItems

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

-AddOptionalConfigurationItem

Type: String[]
Parameter Sets: (All)
Aliases: AddOptionalConfigurationItems

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

-AddProhibitedConfigurationItem

Type: String[]
Parameter Sets: (All)
Aliases: AddProhibitedConfigurationItems

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

-AddRequiredConfigurationItem

Type: String[]
Parameter Sets: (All)
Aliases: AddRequiredConfigurationItems

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

-AddSoftwareUpdate

Type: String[]
Parameter Sets: (All)
Aliases: AddSoftwareUpdates

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

-ClearBaseline

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

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

-ClearOSConfigurationItem

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

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

-ClearOptionalConfigurationItem

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

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

-ClearProhibitedConfigurationItem

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

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

-ClearRequiredConfigurationItem

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

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

-ClearSoftwareUpdate

Type: SwitchParameter
Parameter Sets: (All)
Aliases: 

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
Parameter Sets: (All)
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
Parameter Sets: (All)
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
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

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

-Id

Specifies an array of IDs of configuration baselines.

Type: Int32
Parameter Sets: SetByIdMandatory
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
Parameter Sets: SetByValueMandatory
Aliases: 

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
Parameter Sets: SetByNameMandatory
Aliases: LocalizedDisplayName

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

-NewName

Specifies a new name for the configuration baseline.

Type: String
Parameter Sets: (All)
Aliases: 

Required: False
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
Parameter Sets: (All)
Aliases: 

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

-RemoveBaseline

Type: String[]
Parameter Sets: (All)
Aliases: RemoveBaselines

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[]
Parameter Sets: (All)
Aliases: 

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

-RemoveOSConfigurationItem

Type: String[]
Parameter Sets: (All)
Aliases: RemoveOSConfigurationItems

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

-RemoveOptionalConfigurationItem

Type: String[]
Parameter Sets: (All)
Aliases: RemoveOptionalConfigurationItems

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

-RemoveProhibitedConfigurationItem

Type: String[]
Parameter Sets: (All)
Aliases: RemoveProhibitedConfigurationItems

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

-RemoveRequiredConfigurationItem

Type: String[]
Parameter Sets: (All)
Aliases: RemoveRequiredConfigurationItems

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

-RemoveSoftwareUpdate

Type: String[]
Parameter Sets: (All)
Aliases: RemoveSoftwareUpdates

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
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES

Disable-CMBaseline

Enable-CMBaseline

Export-CMBaseline

Get-CMBaseline

Import-CMBaseline

New-CMBaseline

Remove-CMBaseline

Get-CMBaselineXMLDefinition

Get-CMBaselineSummarizationSchedule