Get-ASDeploymentSystemPackageTree
Edition:Powershell cmdlets are enabled with AdminStudio Enterprise Edition and with Workflow Manager.
Use the Get-ASDeploymentSystemPackageTree cmdlet to query a deployment system, such as System Center 2012 Configuration Manager, for a list of all of its applications and groups. This list contains a unique application ID for each of the applications in the deployment system. Using these IDs, you can import applications into the Application Catalog using the Invoke-ASImportAppFromDeploymentSystem cmdlet.
Example
Get-ASDeploymentSystemPackageTree -SystemConnectionName SCCM2012
Output
The output of the Get-ASDeploymentSystemPackageTree cmdlet is a list of the applications with their application IDs in the specified deployment system, such as this list which was generated for a System Center 2012 Configuration Manager server:
<?xml version="1.0" encoding="utf-16"?>
<root name="Applications">
<Group id="16777220" name="Deployments Only">
<Application id="16783570" name="Hex Editor Neo_appv_created" ObjectType="Application" appType="AppV5X" deploymentTypes="1" appId="Application_8a478407-f4c3-4e66-8713-5ab720c373ad" deploymentModelName=
"DeploymentType_615d9979-2db5-468a-bc86-8529466e53e3" />
<Application id="16783578" name="Blender" ObjectType="Application" appType="AppV5X" deploymentTypes="1" appId="Application_a4e1cdcf-7581-4aea-801c-18ed9bdc0052" deploymentModelName="DeploymentType_203f
a10f-7aed-41c2-a4f8-406ef5a2b903" />
</Group>
<Group id="16777430" name="Publish ID">
<Application id="16844604" name="Orca" ObjectType="Application" appType="MSI" deploymentTypes="1" appId="Application_b12671b0-74ab-43f2-a91a-1cc85541cbb6" deploymentModelName="DeploymentType_3d0c99cb
-29a8-4d0f-aabd-8d80dc552272" />
<Application id="16846770" name="PeaZip (x64)" ObjectType="Application" appType="Script" deploymentTypes="1" appId="Application_7d415432-d2b4-479f-8ca6-2f83b4bcf691" deploymentModelName="DeploymentTy
pe_3c9895c2-965c-49cd-a9d5-de82147aa852" />
<Application id="16846774" name="PeaZip (x86)" ObjectType="Application" appType="Script" deploymentTypes="1" appId="Application_0cecc88a-9195-469f-ac88-7e7f653120cd" deploymentModelName="DeploymentTy
pe_dffaf5e0-ca64-4084-a072-8b64af0ad99f" />
<Application id="16865644" name="Quick Zip" ObjectType="Application" appType="MSI" deploymentTypes="1" appId="Application_55cbaad9-c788-4fc6-bb74-e8678f0c2367" deploymentModelName="DeploymentType_964
21adf-e1bd-4747-8a64-2654c5672f81" />
</Group>
</root>
Parameters
The Get-ASDeploymentSystemPackageTree cmdlet has the following parameters:
Parameter |
Description |
||||||
-SystemConnectionName |
Use to specify a named connection to a deployment system. See Creating Multiple Named Connections to Distribution Systems for more information. |
||||||
-useAdminService |
(Required) Choose one of the following option:
Note:If switch is not provided, then the default value will be set to 1. |
Note:To import an application using the Application ID identified using the Get-ASDeploymentSystemPackageTree cmdlet, see Invoke-ASImportAppFromDeploymentSystem.
Return Values
XML output containing a list of all of a deployment system’s applications and groups is returned.