The Add-CMDeploymentType cmdlet adds a deployment type for an 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.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>. For more information, see getting started.
Examples
Example 1: Add an Windows Installer deployment type to an application
This command adds a Windows Installer deployment type for the application named App01d2012.
The command uses the AutoIdentifyFromIntallationFile parameter to extract information about the deployment type from the content file, and specifies the path of the installation package.
The command uses the ForceForUnknownPublisher parameter to specify that the deployment type verifies the signature of the content file.
Example 2: Add a deployment type that uses a script
This command adds a Windows Installer deployment type for the application named App02d2012.
The command specifies the name Type01 for the deployment type.
The command adds a description for the deployment type, and specifies that the deployment type supports Afrikaans and Arabic.
The command uses the InstallationProgram to specify the command line for the Windows Installer.
The command specifies that the deployment type uses a custom script to detect the presence of this deployment type.
The command specifies that the script type is VBScript and specifies the script language that you will use to detect the deployment type.
The command specifies that the deployment type uses Microsoft Windows-32-on-Windows-64 (WOW64) subsystem to run a script on a 64-bit client computer.
Parameters
-AddRequirement
Adds an array of requirements for this deployment type.
Type:
Rule[]
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-AdministratorComment
Specifies a description for the deployment type.
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-AndroidGooglePlayInstaller
Type:
SwitchParameter
Aliases:
AndroidDeepLinkInstaller
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-AndroidInstaller
Indicates that the deployment type detects application information and deployment types from an app package for Android (.apk) file.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-ApplicationName
Specifies the name of the application that is associated with the deployment type.
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-ApplicationNameInWindowsStore
Specifies the name of the application in the Windows Store.
Type:
String
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-AppV5xInstaller
Indicates that the deployment type detects application information and deployment types from a Application Virtualization (App-V) 5.0 .appv package file.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-AppvInstaller
Indicates that the deployment detects application information and deployment types from an App-V 4.0 manifest .xml file.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-AutoIdentifyFromInstallationFile
Indicates that the deployment type extracts information from the content file.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type:
SwitchParameter
Aliases:
cf
Position:
Named
Default value:
False
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-ContentLocation
Specifies the path of the content.
The site system server requires permission to read the content files.
Type:
String
Aliases:
InstallationFileLocation, WebAppUrl
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-DeploymentTypeName
Specifies the name of a deployment type.
Type:
String
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-DetectDeploymentTypeByCustomScript
Indicates that the deployment type uses a custom script to detect the presence of this deployment type.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-DisableWildcardHandling
This parameter treats wildcard characters as literal character values. You can't combine it with ForceWildcardHandling.
Specifies the command line for the Windows Installer package.
Type:
String
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-InstallationProgramVisibility
Specifies the mode in which the deployment type runs on client devices.
Valid values are:
Normal
Minimized
Maximized
Hidden
Type:
UserInteractionMode
Accepted values:
Normal, Minimized, Maximized, Hidden
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-InstallationStartIn
Specifies the folder that contains the installation program for the deployment type.
This folder can be an absolute path on the client, or a path to the distribution point folder that contains the installation files.
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-IosAppStoreInstaller
Type:
SwitchParameter
Aliases:
IosDeepLinkInstaller
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-IosInstaller
Indicates that the deployment type detects application information and deployment types from an app package for iOS (.ipa) file.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-Language
Specifies an array of languages that the deployment type supports.
Type:
String[]
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-LogonRequirementType
Specifies the logon requirement for the deployment type.
Valid values are:
Indicates that the deployment type detects application information and deployment types from a Mac OS X Installer (.cmmac) file that was created by using the CMAppUtil tool.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-ManualSpecifyDeploymentType
Do not use.
Configuration Manager does not currently use this parameter.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-MaximumAllowedRunTimeMins
Type:
Int32
Aliases:
MaximumAllowedRunTimeMinutes
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-MobileMsiInstaller
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-MsiInstaller
Indicates that the deployment type detects application information and deployment types from a Windows Installer (.msi) file.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-OnFastNetworkMode
Specifies the installation behavior of the deployment type on a fast network.
The acceptable values for this parameter are:
Specifies the installation behavior of the deployment type on a slow network.
Valid values are:
DoNothing
Download
DownloadContentForStreaming
Type:
ContentHandlingMode
Accepted values:
DoNothing, Download, DownloadContentForStreaming
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-PersistContentInClientCache
Indicates whether the deployment type saves content in cache indefinitely on the client computer.
Type:
Boolean
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-PfxFileLocation
Specifies the path of the Personal Information Exchange (PFX) file.
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-PfxFilePassword
Specifies the password, as a secure string, for the PFX file.
Type:
SecureString
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-RemoteComputerName
Specifies a remote computer name.
Type:
String
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-RequireUserInteraction
Type:
Boolean
Aliases:
RequiresUserInteraction
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-ScriptContent
Specifies the script language that you want to use to detect the deployment type.
Type:
String
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-ScriptInstaller
Indicates that the deployment type uses a script to detect the presence of this deployment type.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-ScriptType
Specifies the script language that you want to use to detect the deployment type.
Type:
ScriptLanguage
Accepted values:
PowerShell, VBScript, JavaScript
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-SignContentFile
Indicates whether the deployment type requires a signed content file.
Type:
Boolean
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-SignedContentFileLocation
Specifies the path of the signed content file.
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-TriggerVpn
@{Text=}
Type:
Boolean
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-UninstallProgram
Specifies the name of the uninstall program and any parameters it requires.
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-UninstallStartIn
Specifies the folder that contains the uninstall program for the deployment type.
This folder can be an absolute path on the client, or a path that is relative to the distribution point folder that contains the package.
Type:
String
Position:
Named
Default value:
None
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-WebAppInstaller
Indicates that this cmdlet uses a web application installer for the deployment.
Type:
SwitchParameter
Position:
Named
Default value:
None
Required:
True
Accept pipeline input:
False
Accept wildcard characters:
False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Type:
SwitchParameter
Aliases:
wi
Position:
Named
Default value:
False
Required:
False
Accept pipeline input:
False
Accept wildcard characters:
False
-Windows8AppInstaller
Indicates that the deployment type detects application information and deployment types from a Windows app package (.appx) file.