Get-CMBaseline

Gets configuration baselines.

Syntax

Get-CMBaseline
   [-Id] <Int32>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMBaseline
   [[-Name] <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMBaseline
   [-ParentBaseline] <IResultObject>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMBaseline
   -ParentBaselineId <Int32>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMBaseline
   -ParentBaselineName <String>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMBaseline cmdlet gets one or more configuration baselines.

Examples

Example 1: Get configuration baselines by using a parent baseline name

PS C:\> Get-CMBaseline -ParentBaselineName "ParentBaselineContoso01"

This command gets the child configuration baselines in the parent baseline configuration item named ParentBaselineContoso01.

Example 2: Get configuration baselines by using a parent baseline ID

PS C:\> Get-CMBaseline -ParentBaselineId "16777357"

This command gets the child configuration baselines in the parent baseline configuration item that has the identity 16777357.

Required Parameters

-Id

Specifies an array of IDs of configuration baselines.

Type:Int32
Aliases:CIId, CI_ID
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ParentBaseline

Specifies a CMParentBaseline object.

Type:IResultObject
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ParentBaselineId

Specifies the ID of a parent baseline object.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ParentBaselineName

Specifies the name of a parent baseline.

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

Optional Parameters

-DisableWildcardHandling

DisableWildcardHandling treats wildcard characters as literal character values. Cannot be combined with ForceWildcardHandling.

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

Specifies an array of names of configuration baselines.

Type:String
Aliases:LocalizedDisplayName
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False