Skip to main content

createDeploymentForACatalogItem

You can use the CreateDeploymentForACatalogItem command to create a deployment for a catalog item with a deployment target.

Parameters

The CreateDeploymentForACatalogItem command includes the following parameters:

#ParameterData TypeDescription
allowRestartOutsideOfMaintWindowBooleanSpecify whether to allow machine restart outside of maintenance window.
CreateUninstallBooleanThis parameter can only be used on packages of Type 15 where you want to create both an install and an uninstall at the same time. The parameter value in this case should be True or False otherwise.
deploymentTargetIntegerUse one of the following values: 0 = Deploy To User 1 = Deploy To Computer
DeploymentTechnologyIntegerValues are either SCCM 2012, or Altiris .
deployToAllSitesBooleanThis parameter always has to be set to False because you can use this API to communicate with only one site.
DistributionPointIntegerUse one of the following values: 1 = Run From DP 2 = Download From DP
FunctionNameStringUse one of the following values: Install Uninstall Repair
ignoreMaintenanceWindowsBooleanSpecify whether to ignore maintenance windows.
isMandatoryOverSlowLinkBooleanSpecify whether this is mandatory even over slow links.
isRblDPVisibleBooleanUse to specify when a distribution point is available locally. The default value is True.
isRblNoDPVisibleBooleanUse to specify when no distribution point is available locally. The default value is True.
isSelectedBooleanTrue for a selected site.
LanguageIDIntegerEnter 0 for English.
makeAvailableToBootandPXEBooleanMake this task sequence available to boot media and PXE.
makeMandatoryBooleanMake the advertisement mandatory.
noDistributionPointIntegerUse one of the following values: 1 = Don’t Run 2 = Download From RDP 3 = Run From RDP
OSDProgramStringEnter the OSDProgramName , or you can leave it blank.
PackageTypeIntegerUse one of the following values: 0, 7 = Software distribution package 4 = Task sequence 15 = Application
priorityIntegerUse one of the following values: 1 = High 2 = Medium 3 = Low
ProgramNameStringEnter a program name.
rerunBehaviorIntegerUse one of the following values: 1 = Never Rerun 2 = Always Rerun 3 = Rerun Failed 3 = Rerun Succeeded
showTaskSequenceProgressBooleanShow the task sequence execution progress.
SiteServerStringSite server string.
siteTextStringEnter the name of the site, such as LAX or ORD .
SMSPackageIDStringEnter the SMSPackageID of the catalog item.
taskSeqDistributionPointIntegerUse one of the following values: 1 = Don’t Run 2 = Download From RDP 3 = Run From RDP
TitleStringName of the catalog item.
useRemoteDPForTaskSequenceBooleanUse a remote distribution point when no local distribution point is available.
useUnprotectedDPBooleanUse an unprotected distribution point when no protected distribution point is available

Return Value

Returns one of the following:

  • Returns a 1 when successfully creating the deployment for a catalog item.
  • Returns a 0 if the deployment was not created.
  • Returns a -1 when encountering an exception.