Get-CMDeploymentType

Get a deployment type for an application.

Syntax

Get-CMDeploymentType
   -ApplicationName <String>
   [-DeploymentTypeName <String>]
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMDeploymentType
   -ApplicationName <String>
   -DeploymentTypeId <Int32>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]
Get-CMDeploymentType
   [-DeploymentTypeName <String>]
   -InputObject <IResultObject>
   [-DisableWildcardHandling]
   [-ForceWildcardHandling]
   [<CommonParameters>]

Description

Use this cmdlet to get a deployment type for a Configuration Manager application.

A deployment type is contained within an application and contains the information that Configuration Manager requires to install software. A deployment type also contains rules that specify if and how the software is deployed.

For more information, see Introduction to application management in Configuration Manager.

Note

Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.

Examples

Example 1: Get all deployment types for an application

This command gets all of the deployment types for the application named CenterApp.

Get-CMDeploymentType -ApplicationName "CenterApp"

Example 2: Get a specific deployment type by name

This command gets the deployment type named InterDept - Windows app package (.appx file) for the application named CenterApp.

Get-CMDeploymentType -ApplicationName "CenterApp" -DeploymentTypeName "InterDept - Windows app package (.appx file)"

Parameters

-ApplicationName

Specify the name of the application for the deployment type.

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

-DeploymentTypeId

Specify the ID of a deployment type to get. This value is the CI_ID, for example: 33554475.

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

-DeploymentTypeName

Specify the name of a deployment type to get.

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

-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

-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 application object to get its deployment types. To get this object, use the Get-CMApplication cmdlet.

Type:IResultObject
Aliases:Application
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

Microsoft.ConfigurationManagement.ManagementProvider.IResultObject

Outputs

IResultObject[]

IResultObject

Notes

For more information on this return object and its properties, see SMS_DeploymentType server WMI class.