Set-CMBaseline
SYNOPSIS
Zmienia ustawienia konfiguracji odniesienia.
SYNTAX
SetByIdMandatory (ustawienie domyślne)
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
Polecenie cmdlet Set-CMBaseline zmienia ustawienia co najmniej jednej konfiguracji odniesienia w Menedżer konfiguracji.
Uwaga
Uruchom Menedżer konfiguracji cmdlet z Menedżer konfiguracji lokacji, na przykład PS XYZ:\>
. Aby uzyskać więcej informacji, zobacz wprowadzenie.
EXAMPLES
Przykład 1: Dodawanie członkostwa do zakresu zabezpieczeń konfiguracji odniesienia
PS XYZ:\> Set-CMBaseline -SecurityScopeAction AddMembership -SecurityScopeName "SecScope02" -Name "BLineContoso01"
To polecenie dodaje członkostwo w zakresie zabezpieczeń o nazwie SecScope02 dla konfiguracji odniesienia o nazwie BLineContoso01.
Przykład 2: Usuwanie członkostwa z zakresu zabezpieczeń konfiguracji odniesienia
PS XYZ:\> Set-CMBaseline -SecurityScopeAction RemoveMembership -SecurityScopeName "SecScope02" -Name "BLineContoso01"
To polecenie usuwa członkostwo w zakresie zabezpieczeń o nazwie SecScope02 dla konfiguracji odniesienia o nazwie 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
Określa tablicę nazw kategorii konfiguracji do dodania do konfiguracji odniesienia.
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
Począwszy od wersji 1906, użyj tego parametru, aby ustawić następującą opcję we właściwościach konfiguracji odniesienia: Zawsze zastosuj ten punkt odniesienia nawet w przypadku klientów współza zarządzanych
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
Monituje o potwierdzenie przed uruchomieniem polecenia cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Description (Opis)
Określa opis konfiguracji odniesienia.
Type: String
Parameter Sets: (All)
Aliases: LocalizedDescription
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DesiredConfigurationDigestPath
Określa ścieżkę do danych konfiguracji przechowywanych jako skrót.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-DisableWildcardHandling
Ten parametr traktuje symbole wieloznaczne jako wartości literału znaków. Nie można połączyć go z forceWildcardHandling.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ForceWildcardHandling
Ten parametr przetwarza symbole wieloznaczne i może prowadzić do nieoczekiwanego zachowania (nie jest zalecane). Nie można połączyć go z disableWildcardHandling.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Id
Określa tablicę identyfikatorów konfiguracji odniesienia.
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
Określa obiekt CMBaseline. Aby uzyskać obiekt CMBaseline, użyj polecenia cmdlet 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
Określa tablicę nazw konfiguracji odniesienia.
Type: String
Parameter Sets: SetByNameMandatory
Aliases: LocalizedDisplayName
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-NewName
Określa nową nazwę konfiguracji odniesienia.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-PassThru
Dodaj ten parametr, aby zwrócić obiekt reprezentujący element, z którym pracujesz. Domyślnie to polecenie cmdlet może nie generować żadnych danych wyjściowych.
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
Określa tablicę nazw kategorii konfiguracji do usunięcia z konfiguracji odniesienia.
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
Pokazuje, co się stanie po uruchomieniu polecenia cmdlet. Polecenie cmdlet nie jest uruchamiane.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Typowe parametry
To polecenie cmdlet obsługuje typowe parametry: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction i -WarningVariable. Aby uzyskać więcej informacji, zobacz about_CommonParameters.