external help file | Module Name | ms.date | online version | schema |
---|---|---|---|---|
AdminUI.PS.dll-Help.xml |
ConfigurationManager |
07/28/2021 |
2.0.0 |
Get from the specified deployment type the list of executable files that need to close for the app install to succeed.
Get-CMDeploymentTypeInstallBehavior -InputObject <IResultObject> [-DisableWildcardHandling]
[-ForceWildcardHandling] [<CommonParameters>]
Starting in version 2107, use this cmdlet to get from the specified application deployment type the list of executable files that need to close for the app install to succeed. For more general information on the install behavior feature, see Check for running executable files.
If you use PowerShell to deploy the application, use the AutoCloseExecutable parameter on either New-CMApplicationDeployment or Set-CMApplicationDeployment. This parameter enables the application deployment setting for install behaviors.
Note
Run Configuration Manager cmdlets from the Configuration Manager site drive, for example PS XYZ:\>
. For more information, see getting started.
This example lists the install behaviors for an MSI deployment type of the CenterApp application.
$appName = "CenterApp"
$dtName = "InterDept - Windows Installer (.msi file)"
$msi_dt = Get-CMDeploymentType -ApplicationName $appName -DeploymentTypeName $dtName
Get-CMDeploymentTypeInstallBehavior -InputObject $msi_dt
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
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 an application deployment type object. To get this object, use the Get-CMDeploymentType cmdlet.
Type: IResultObject
Parameter Sets: (All)
Aliases: DeploymentType
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
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.
Add-CMDeploymentTypeInstallBehavior Remove-CMDeploymentTypeInstallBehavior Set-CMDeploymentTypeInstallBehavior