Get-CMApplication

Gets an application.

Syntax

Get-CMApplication
   [-DisableWildcardHandling]
   [-Fast]
   [-ForceWildcardHandling]
   -Id <Int32>
   [<CommonParameters>]
Get-CMApplication [-DisableWildcardHandling] [-Fast] [-ForceWildcardHandling] -InputObject 
 []
Get-CMApplication [-DisableWildcardHandling] [-Fast] [-ForceWildcardHandling] -ModelName 
 []
Get-CMApplication [[-Name] ] [-DisableWildcardHandling] [-Fast] [-ForceWildcardHandling]
 []

Description

The Get-CMApplication cmdlet gets a Microsoft System Center Configuration Manager application.

Examples

Example 1: Get an application by name

PS C:\> Get-CMApplication -Name "Application1"

This command gets the application object named Application1.

Example 2: Get the application for a deployment type

PS C:\> $DeploymentType = Get-CMDeploymentType -DeploymentTypeName "DT2" -ApplicationName "Application1"
PS C:\> $DeploymentType | Get-CMApplication

The first command gets the deployment type object named DT2 for the application named Application1 and stores the object in the $DeploymentType variable.

The second command uses the pipeline operator to pass the deployment type stored in $DeploymentType to Get-CMApplication, which gets the application for the deployment type.

Required Parameters

-Id

Specifies the CI_ID and ModelID properties (the same value) of an application.

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

Specifies a deployment type object. To obtain a deployment type object, use the Get-CMDeploymentType cmdlet.

Type:IResultObject
Aliases:DeploymentType
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ModelName

Specifies the model name of an application.

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

Indicates that the cmdlet does not automatically refresh lazy properties.Lazy properties contain values that are relatively inefficient to retrieve which can cause additional network traffic and decrease cmdlet performance. If lazy properties are not used, this parameter should be specified.

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 the name of an application.

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