Get-CMBaselineXMLDefinition

Gets the XML definition of a configuration baseline.

Syntax

Get-CMBaselineXMLDefinition
   [-Id] <Int32>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMBaselineXMLDefinition [-InputObject]  [-DisableWildcardHandling] [-ForceWildcardHandling]
 []
Get-CMBaselineXMLDefinition [[-Name] ] [-DisableWildcardHandling] [-ForceWildcardHandling]
 []

Description

The Get-CMBaselineXMLDefinition cmdlet gets and displays the XML definition of one or more baseline configurations.

Examples

Example 1: Get a configuration baseline XML definition

PS C:\> $CIObj = Get-CMBaseline -Id "16777568"
PS C:\> Get-CMBaselineXMLDefinition -InputObject $CIObj

The first command gets the configuration baseline object that has the ID 16777568, and stores the object in the $CIObj variable.

The second command gets the XML definition of the configuration baseline stored in $CIObj.

Required Parameters

-Id

Specifies an array of IDs of baseline configurations.

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

Specifies a CMBaseline object. To obtain a CMBaseline object, use the Get-CMBaseline cmdlet.

Type:IResultObject
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
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 baseline configuration names.

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