Set-CMBaseline
SYNOPSIS
Ändrar inställningarna för konfigurationsbaslinjer.
SYNTAX
SetByIdMandatory (standard)
Set-CMBaseline [-AddBaseline <String[]>] [-AddCategory <String[]>] [-AddOptionalConfigurationItem <String[]>]
[-AddOSConfigurationItem <String[]>] [-AddProhibitedConfigurationItem <String[]>]
[-AddRequiredConfigurationItem <String[]>] [-AddSoftwareUpdate <String[]>] [-AllowComanagedClients <Boolean>]
[-ClearBaseline] [-ClearOptionalConfigurationItem] [-ClearOSConfigurationItem]
[-ClearProhibitedConfigurationItem] [-ClearRequiredConfigurationItem] [-ClearSoftwareUpdate]
[-Description <String>] [-DesiredConfigurationDigestPath <String>] -Id <Int32> [-NewName <String>] [-PassThru]
[-RemoveBaseline <String[]>] [-RemoveCategory <String[]>] [-RemoveOptionalConfigurationItem <String[]>]
[-RemoveOSConfigurationItem <String[]>] [-RemoveProhibitedConfigurationItem <String[]>]
[-RemoveRequiredConfigurationItem <String[]>] [-RemoveSoftwareUpdate <String[]>] [-DisableWildcardHandling]
[-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]
SetByNameMandatory
Set-CMBaseline [-AddBaseline <String[]>] [-AddCategory <String[]>] [-AddOptionalConfigurationItem <String[]>]
[-AddOSConfigurationItem <String[]>] [-AddProhibitedConfigurationItem <String[]>]
[-AddRequiredConfigurationItem <String[]>] [-AddSoftwareUpdate <String[]>] [-AllowComanagedClients <Boolean>]
[-ClearBaseline] [-ClearOptionalConfigurationItem] [-ClearOSConfigurationItem]
[-ClearProhibitedConfigurationItem] [-ClearRequiredConfigurationItem] [-ClearSoftwareUpdate]
[-Description <String>] [-DesiredConfigurationDigestPath <String>] -Name <String> [-NewName <String>]
[-PassThru] [-RemoveBaseline <String[]>] [-RemoveCategory <String[]>]
[-RemoveOptionalConfigurationItem <String[]>] [-RemoveOSConfigurationItem <String[]>]
[-RemoveProhibitedConfigurationItem <String[]>] [-RemoveRequiredConfigurationItem <String[]>]
[-RemoveSoftwareUpdate <String[]>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
SetByValueMandatory
Set-CMBaseline [-AddBaseline <String[]>] [-AddCategory <String[]>] [-AddOptionalConfigurationItem <String[]>]
[-AddOSConfigurationItem <String[]>] [-AddProhibitedConfigurationItem <String[]>]
[-AddRequiredConfigurationItem <String[]>] [-AddSoftwareUpdate <String[]>] [-AllowComanagedClients <Boolean>]
[-ClearBaseline] [-ClearOptionalConfigurationItem] [-ClearOSConfigurationItem]
[-ClearProhibitedConfigurationItem] [-ClearRequiredConfigurationItem] [-ClearSoftwareUpdate]
[-Description <String>] [-DesiredConfigurationDigestPath <String>] -InputObject <IResultObject>
[-NewName <String>] [-PassThru] [-RemoveBaseline <String[]>] [-RemoveCategory <String[]>]
[-RemoveOptionalConfigurationItem <String[]>] [-RemoveOSConfigurationItem <String[]>]
[-RemoveProhibitedConfigurationItem <String[]>] [-RemoveRequiredConfigurationItem <String[]>]
[-RemoveSoftwareUpdate <String[]>] [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm]
[<CommonParameters>]
DESCRIPTION
Cmdleten Set-CMBaseline ändrar inställningarna för en eller flera konfigurationsbaslinjer i Konfigurationshanteraren.
Anteckning
Kör Konfigurationshanteraren cmdlets från Konfigurationshanteraren platsenheten, till exempel PS XYZ:\>
. Mer information finns i Komma igång.
EXAMPLES
Exempel 1: Lägga till ett medlemskap i en säkerhetsomfattning för en konfigurationsbaslinje
PS XYZ:\> Set-CMBaseline -SecurityScopeAction AddMembership -SecurityScopeName "SecScope02" -Name "BLineContoso01"
Det här kommandot lägger till medlemskap i säkerhetsomfattningen med namnet SecScope02 för konfigurationsbaslinjen med namnet BLineContoso01.
Exempel 2: Ta bort medlemskap från en säkerhetsomfattning för en konfigurationsbaslinje
PS XYZ:\> Set-CMBaseline -SecurityScopeAction RemoveMembership -SecurityScopeName "SecScope02" -Name "BLineContoso01"
Det här kommandot tar bort medlemskap i säkerhetsomfattningen med namnet SecScope02 för konfigurationsbaslinjen med namnet 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
Anger en matris med namn på konfigurationskategorier som ska läggas till i konfigurationsbaslinjerna.
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
-AllowComanagedClients
Från och med version 1906 använder du den här parametern för att ange följande alternativ för konfigurationsbaslinjeegenskaperna: Använd alltid den här baslinjen även för sam hanterade klienter
Type: Boolean
Parameter Sets: (All)
Aliases:
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
Uppmanar dig att bekräfta innan du kör cmdleten.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Beskrivning
Anger en beskrivning av konfigurationsbaslinjen.
Type: String
Parameter Sets: (All)
Aliases: LocalizedDescription
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DesiredConfigurationDigestPath
Anger en sökväg till konfigurationsdata som lagras som en sammanfattning.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DisableWildcardHandling
Den här parametern behandlar jokertecken som värden för literaltecken. Du kan inte kombinera den med ForceWildcardHandling.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ForceWildcardHandling
Den här parametern bearbetar jokertecken och kan leda till oväntat beteende (rekommenderas inte). Du kan inte kombinera den med DisableWildcardHandling.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Id
Anger en matris med ID:er för konfigurationsbaslinjer.
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
Anger ett CMBaseline-objekt. Om du vill hämta ett CMBaseline-objekt använder du cmdleten Get-CMBaseline.
Type: IResultObject
Parameter Sets: SetByValueMandatory
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
-Name
Anger en matris med namn på konfigurationsbaslinjer.
Type: String
Parameter Sets: SetByNameMandatory
Aliases: LocalizedDisplayName
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-NewName
Anger ett nytt namn för konfigurationsbaslinjen.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PassThru
Lägg till den här parametern för att returnera ett objekt som representerar det objekt som du arbetar med. Som standard genererar den här cmdleten kanske inte några utdata.
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
Anger en matris med namn på konfigurationskategorier som ska tas bort från konfigurationsbaslinjerna.
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
Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
Denna cmdlet har stöd för parametrarna -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction och -WarningVariable. Mer information finns i about_CommonParameters.