Get-ASAppPortalTemplates

AdminStudio 2020 | 19.0 | AdminStudio PowerShell Cmdlets

Edition:Powershell cmdlets are enabled with AdminStudio Enterprise Edition and with Workflow Manager.

In App Portal, you can use templates to automatically assign a defined set of properties to a catalog item. The Get‑ASAppPortalTemplates cmdlet returns an XML stream of existing templates in App Portal, such as:

<Templates Status="Synced">

  <Template Id="172">

    <Name>MyTemplateTwo</Name>

  </Template>

</Templates>

You can then use the Set-ASProperty cmdlet to set the App Portal template for an application, such as:

Set-ASProperty-PackageID 1-PropertyName "Templates"-PropertyValue "Standard SCCM 2012"

When the application is published to an App Portal-linked distribution system, an App Portal catalog item will be created using the specified template.

Example

The following is an example of the Get-ASAppPortalTemplates cmdlet:

Get-ASAppPortalTemplates

Parameters

The Get-ASAppPortalTemplates cmdlet has no parameters.

Note:For more information on setting App Portal properties using PowerShell cmdlets, see App Portal Information Tab under Set-ASProperty. App Portal properties that can be set include: Categories, Template, Keywords, Long Description, and Brief Description.