Get-CMGlobalCondition

Gets global condition objects.

Syntax

Get-CMGlobalCondition
   -Id <String>
   [-AsDcmSdkObject]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMGlobalCondition
   [-Name <String>]
   [-AsDcmSdkObject]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

The Get-CMGlobalCondition cmdlet gets global condition objects. You can pass the results of this cmdlet to the Set-CMGlobalCondition cmdlet or the Remove-CMGlobalCondition cmdlet.

Microsoft System Center Configuration Manager uses global conditions to represent business or technical conditions. Global conditions specify how to provide and deploy applications to client devices.

You can get global conditions by name, ID, or security scope. You can also specify one or more security scope names with either names or IDs. For instance, you might specify an array of global condition names and specify a security scope to narrow your results.

Examples

Example 1: Get a global condition by name

PS C:\> Get-CMGlobalCondition -Name "CPU speed"

This command gets the global condition named CPU speed.

Example 2: Get a global condition by name and security scope

PS C:\> Get-CMGlobalCondition -Name "CPU speed" -SecuredScopeNames "Scope22"

This command gets the global condition named CPU speed that has a security scope named Scope22.

Required Parameters

-Id

Specifies an array of identifiers of global conditions. This value corresponds to the CI_ID property of a global condition object.

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

Optional Parameters

-AsDcmSdkObject
Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-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 for global conditions. This value corresponds to the LocalizedDisplayName property of a global condition object.

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