Get-CMGlobalCondition

Gets global condition objects.

Syntax

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

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

Optional Parameters

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

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