Get-CMBaselineDeploymentStatus
Get the status of a configuration baseline deployment.
Syntax
Get-CMBaselineDeploymentStatus
[-Fast]
-InputObject <IResultObject>
[-StatusType <BaselineDeploymentStatusType>]
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[<CommonParameters>]
Description
Use this cmdlet to get the status of a configuration baseline deployment.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
Examples
Example 1: Show all compliant deployments for a specific configuration baseline
$baseline = Get-CMBaseline -Name "Check Windows health" -Fast
Get-CMBaselineDeploymentStatus -StatusType Compliant -InputObject $baseline
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 |
-InputObject
Specify an object for a configuration baseline. To get this object, use the Get-CMBaseline cmdlet.
Type: | IResultObject |
Aliases: | Baseline, Assignment, Deployment |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StatusType
Specify a compliance state. For example, to only return compliant deployments, add -StatusType Compliant
.
Type: | BaselineDeploymentStatusType |
Accepted values: | Unknown, NonCompliant, Error, Compliant |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Microsoft.ConfigurationManagement.ManagementProvider.IResultObject
Outputs
System.Object