external help file: AdminUI.PS.dll-Help.xml Module Name: ConfigurationManager ms.date: 03/31/2021 schema: 2.0.0 title: Get-CMApplication
Get an application.
Get-CMApplication [-Fast] [[-Name] <String>] [-ShowHidden] [-DisableWildcardHandling] [-ForceWildcardHandling]
[<CommonParameters>]
Get-CMApplication [-Fast] -Id <Int32> [-ShowHidden] [-DisableWildcardHandling] [-ForceWildcardHandling]
[<CommonParameters>]
Get-CMApplication [-Fast] -InputObject <IResultObject> [-ShowHidden] [-DisableWildcardHandling]
[-ForceWildcardHandling] [<CommonParameters>]
Get-CMApplication [-Fast] -ModelName <String> [-ShowHidden] [-DisableWildcardHandling] [-ForceWildcardHandling]
[<CommonParameters>]
Use this cmdlet to get a Configuration Manager application. A Configuration Manager application defines the metadata about app. An application has one or more deployment types. These deployment types include the installation files and information that are required to install software on devices. A deployment type also has rules, such as detection methods and requirements. These rules specify when and how the client installs the software.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
This command gets the application object named Application1.
Get-CMApplication -Name "Application1"
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.
$DeploymentType = Get-CMDeploymentType -DeploymentTypeName "DT2" -ApplicationName "Application1"
$DeploymentType | Get-CMApplication
This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This parameter processes wildcard characters and may lead to unexpected behavior (not recommended). You can't combine it with DisableWildcardHandling.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specify the CI_ID of an application to get. For example, 136846
.
Type: Int32
Parameter Sets: SearchByIdMandatory
Aliases: CIId, CI_ID
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specify a deployment type object to get the associated application. To get this object, use the Get-CMDeploymentType cmdlet.
Type: IResultObject
Parameter Sets: SearchByDeploymentType
Aliases: DeploymentType
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specify the ModelID of an application to get. For example, 136846
.
Type: String
Parameter Sets: SearchByModelName
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specify the name of an application to get.
Type: String
Parameter Sets: SearchByName
Aliases: LocalizedDisplayName, ApplicationName
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: True
-ShowHidden
Add this parameter to show hidden applications. A hidden application has the IsHidden property set to $true
. A hidden app doesn't display in the Configuration Manager console, and it only returns with this cmdlet when you specify this parameter.
To hide an application, use the following commands:
$app = Get-CMApplication -Name "test app" $app.IsHidden = $true $app.Put()
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
For more information on these return object and their properties, see the following articles: