Get-CMBaseline

Gets configuration baselines.

Syntax

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

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
Required:True
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ParentBaseline

Specifies a CMParentBaseline object.

Type:IResultObject
Required:True
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
Required:True
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ParentBaselineName

Specifies the name of a parent baseline.

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

Optional Parameters

-DisableWildcardHandling

Indicates that wildcard handling is disabled.

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ForceWildcardHandling

Indicates that wildcard handling is enabled.

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