Get-CMBaseline
Get a configuration baseline.
Syntax
Get-CMBaseline
[-Fast]
[[-Name] <String>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Get-CMBaseline
[-Fast]
[-Id] <Int32>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Get-CMBaseline
[-Fast]
[-ParentBaseline] <IResultObject>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Get-CMBaseline
[-Fast]
-ParentBaselineId <Int32>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Get-CMBaseline
[-Fast]
-ParentBaselineName <String>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Description
Use this cmdlet to get one or more configuration baselines. Use configuration baselines to evaluate compliance of a device. For more information, see Get started with compliance settings in Configuration Manager.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Examples
Example 1: Get configuration baselines by using a parent baseline name
This command gets the child configuration baselines in the parent baseline configuration item named ParentBaselineContoso01.
Get-CMBaseline -ParentBaselineName "ParentBaselineContoso01"
Example 2: Get configuration baselines by using a parent baseline ID
This command gets the child configuration baselines in the parent baseline configuration item that has the ID 16777357.
Get-CMBaseline -ParentBaselineId "16777357"
Parameters
-DisableWildcardHandling
This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Fast
Add this parameter to not automatically refresh lazy properties. Lazy properties contain values that are relatively inefficient to retrieve. Getting these properties can cause additional network traffic and decrease cmdlet performance.
If you don't use this parameter, the cmdlet displays a warning. To disable this warning, set $CMPSSuppressFastNotUsedCheck = $true
.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ForceWildcardHandling
This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Id
Specify the ID of a configuration baseline. This value is the same as the CI_ID attribute. For example, 33554545
.
Type: | Int32 |
Aliases: | CIId, CI_ID |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specify the name of a configuration baseline. This value is the same as the LocalizedDisplayName attribute.
You can use wildcard characters:
*
: Multiple characters?
: Single character
Type: | String |
Aliases: | LocalizedDisplayName |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | True |
-ParentBaseline
Specify a configuration baseline object that's a parent baseline.
Type: | IResultObject |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ParentBaselineId
Specify the ID of a parent configuration baseline.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ParentBaselineName
Specify the name of a parent configuration baseline.
You can use wildcard characters:
*
: Multiple characters?
: Single character
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
Outputs
IResultObject[]
IResultObject
IResultObject[]
IResultObject
IResultObject[]
IResultObject
Notes
For more information on these return objects and their properties, see the following articles:
- SMS_ConfigurationBaselineInfo server WMI class
- SMS_ConfigurationItem server WMI class
- SMS_SoftwareUpdate server WMI class