Delen via


New-CMBaselineDeployment

SYNOPSIS

Maak een basislijnimplementatie.

SYNTAX

SearchByValueMandatory (standaard)

New-CMBaselineDeployment [-EnableEnforcement <Boolean>] [-GenerateAlert <Boolean>]
 [-InputObject] <IResultObject> [-MonitoredByScom <Boolean>] [-OverrideServiceWindow <Boolean>]
 [-ParameterValue <Int32>] [-PostponeDateTime <DateTime>] [-Schedule <IResultObject>]
 [-Collection <IResultObject>] [-CollectionId <String>] [-CollectionName <String>] [-DisableWildcardHandling]
 [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

SearchByIdMandatory

New-CMBaselineDeployment [-EnableEnforcement <Boolean>] [-GenerateAlert <Boolean>] [-Id] <Int32>
 [-MonitoredByScom <Boolean>] [-OverrideServiceWindow <Boolean>] [-ParameterValue <Int32>]
 [-PostponeDateTime <DateTime>] [-Schedule <IResultObject>] [-Collection <IResultObject>]
 [-CollectionId <String>] [-CollectionName <String>] [-DisableWildcardHandling] [-ForceWildcardHandling]
 [-WhatIf] [-Confirm] [<CommonParameters>]

SearchByNameMandatory

New-CMBaselineDeployment [-EnableEnforcement <Boolean>] [-GenerateAlert <Boolean>] [-MonitoredByScom <Boolean>]
 [-Name] <String> [-OverrideServiceWindow <Boolean>] [-ParameterValue <Int32>] [-PostponeDateTime <DateTime>]
 [-Schedule <IResultObject>] [-Collection <IResultObject>] [-CollectionId <String>] [-CollectionName <String>]
 [-DisableWildcardHandling] [-ForceWildcardHandling] [-WhatIf] [-Confirm] [<CommonParameters>]

DESCRIPTION

Implementeer een configuratiebasislijn. Gebruik de cmdlet Get-CMBaseline om een basislijn op te halen.

Notitie

Voer Configuration Manager cmdlets uit vanaf Configuration Manager-sitestation, bijvoorbeeld PS XYZ:\> . Zie Aan de slag voor meer informatie.

EXAMPLES

Voorbeeld 1: Een basislijn implementeren naar verzamelingen met hetzelfde benoemde voorvoegsel

In dit voorbeeld wordt Get-CMBaseline gebruikt om de configuratiebasislijn op te halen en op te slaan in de variabele $BaselineName. Vervolgens wordt Get-CMCollection gebruikt om een lijst op te halen met alle verzamelingen waarvan de naam begint met 'Collection_Name' en slaat deze op in de variabele $DeployToCollections. Vervolgens wordt een planning voor de implementatie gemaakt met de cmdlet New-CMSchedule. Zodra alle vereiste gegevens zijn opgeslagen, doorloop het voorbeeld elke verzameling en implementeert het de basislijn met New-CMBaselineDeployment.

$BaselineName = Get-CMBaseline -Name 'ConfigMgr Baseline'
$DeployToCollections = Get-CMCollection -Name 'Collection_Name*' | Sort-Object -Property "Name"
$BaselineSchedule = New-CMSchedule -DurationInterval Days -DurationCount 0 -RecurInterval Days -RecurCount 1

foreach ($Collection in $DeployToCollection)
             {
             New-CMBaselineDeployment -InputObject $BaselineName -CollectionID $Collection.CollectionId -Schedule $BaselineSchedule
             Write-Output "Created Deployment for $($BaselineName.LocalizedDisplayName) on $($Collection.Name)"
             }

Voorbeeld 2: Een basislijn implementeren naar één verzameling

In dit voorbeeld wordt eerst een eenvoudige planning gemaakt. Vervolgens wordt de basislijn geïmplementeerd MY_Baseline de verzameling met id PS1000023.

$BaselineSchedule = New-CMSchedule -DurationInterval Days -DurationCount 0 -RecurInterval Days -RecurCount 1
New-CMBaselineDeployment -Name "MY_Baseline" -CollectionID "PS1000023" -Schedule $BaselineSchedule

PARAMETERS

-Collection

Geef een verzamelingsobject op als het doel van de basislijnimplementatie.

Type: IResultObject
Parameter Sets: (All)
Aliases:

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

-CollectionId

Geef de id van de verzameling op als het doel van de implementatie.

Type: String
Parameter Sets: (All)
Aliases:

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

-CollectionName

Geef de naam van de verzameling op als het doel van de implementatie.

Type: String
Parameter Sets: (All)
Aliases:

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

-Confirm

Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

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

-DisableWildcardHandling

Deze parameter behandelt jokertekens als letterlijke tekenwaarden. U kunt deze niet combineren met ForceWildcardHandling.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-EnableEnforcement

Als $true , herstelt u niet-compatibele regels indien ondersteund.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-ForceWildcardHandling

Deze parameter verwerkt jokertekens en kan leiden tot onverwacht gedrag (niet aanbevolen). U kunt deze niet combineren met DisableWildcardHandling.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-GenerateAlert

Als $true , genereert u een waarschuwing.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Id

Geef de id op van de configuratiebasislijn die moet worden geïmplementeerd.

Type: Int32
Parameter Sets: SearchByIdMandatory
Aliases: CIId, CI_ID, BaselineId

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

-InputObject

Geef een configuratiebasislijnobject op dat moet worden geïmplementeerd. Gebruik de cmdlet Get-CMBaseline om een basislijn op te halen.

Type: IResultObject
Parameter Sets: SearchByValueMandatory
Aliases: Baseline

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-MonitoredByScom

Als $true , genereert u een System Center Operations Manager waarschuwing.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-Name

Geef de naam op van de configuratiebasislijn die moet worden geïmplementeerd.

Type: String
Parameter Sets: SearchByNameMandatory
Aliases: LocalizedDisplayName, BaselineName

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

-OverrideServiceWindow

Als $true , staat u toe dat de client deze basislijn buiten onderhoudsvensters herstelt.

Type: Boolean
Parameter Sets: (All)
Aliases:

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

-ParameterValue

Als u de parameter -GenerateAlert gebruikt, geeft u een geheel getal op als een percentage (0-100). Wanneer de naleving van deze configuratiebasislijn lager is dan deze waarde, genereert de site een waarschuwing.

Type: Int32
Parameter Sets: (All)
Aliases:

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

-PostponeDateTime

Deze parameter komt overeen met de eigenschap Datum en tijd van de configuratiebasislijn wanneer u de parameter -GenerateAlert gebruikt.

Type: DateTime
Parameter Sets: (All)
Aliases:

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

-Schedule

Geef een planningsobject op voor wanneer de client deze configuratiebasislijn evalueert. Gebruik de cmdlet New-CMSchedule om een planning te maken.

Type: IResultObject
Parameter Sets: (All)
Aliases:

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

-WhatIf

Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

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

CommonParameters

Deze cmdlet biedt ondersteuning voor de meest gebruikte parameters: -Debug, - ErrorAction, - ErrorVariable, - InformationAction, -InformationVariable, - OutVariable,-OutBuffer, - PipelineVariable - Verbose, - WarningAction en -WarningVariable. Zie voor meer informatie about_CommonParameters.

INPUTS

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

OUTPUTS

System.Object

OPMERKINGEN

Get-CMBaseline

Get-CMCollection

New-CMSchedule