SoftwareCentral · Application Manager

Intune application templates

An Intune application template holds the settings that a new Intune application is made with: the install and uninstall commands, the requirements, the groups that are made for it, the tenants it is copied to and the roles that may use it. Create a template once, then pick it when you create an application in Intune.

Filters Export CSV Best practice Troubleshooting

1 What it is for

The template is the answer sheet for Intune applications. Everything in it is copied to each new Intune application that is made with the template.

Robopack has its own templates: Robopack Templates is the third page under Templates, described in Deployment templates.

  • Install behaviour: whether the application installs for the device (System) or for the user (User), the MSI and script commands, the restart behaviour and the time allowed.
  • Requirements: the Windows architecture, the minimum Windows release, free disk space, memory, processors and CPU speed.
  • Groups: which Intune groups are made for each application (required, available and uninstall), and which group they are added to.
  • Return codes: what each installer exit code means.
  • Who can use it: the tenants the application is copied to, the package security groups that may see it, and the security roles that may use the template.

2 The page at a glance

Open Templates › Intune Application Templates in the menu. The page lists the templates you are allowed to see.

The Intune Application Templates page with the list of templates
The Intune Application Templates page: the Add new template button and the search box at the top, the Filters button and Export CSV above the list, and one row per template with its name, description, install behaviour, groups, tenants and roles.
ColumnWhat it shows
NameThe template name. Click it, or Edit, to open the template window.
DescriptionThe description shown in the Company Portal, or a dash when there is none.
Install asSystem or User.
Groups madeRequired, Available and Uninstall, one pill for each group the template makes. A dash when it makes none.
TenantsThe names of the tenants the application is copied to, up to three. With more, the count is shown and the full list is in the tooltip and the CSV file. The user's tenant means no other tenant is chosen.
Visible toThe security roles that may use the template, up to three names, or the count. A role marked (all templates) in the role filter sees every template. Administrators only means no role is given the template.

The count above the list, for example 12 Intune application templates, follows the search and the filters. Use the List and Tiles buttons to change how the templates are shown.

3 Search, filters and export

  • Search: type a part of the name in the box on the left and press Enter. Each search value becomes a token; a template is listed when its name contains every token. Remove a token with its cross.
  • Filters: click Filters to open the panel. The number on the button shows how many filters are in use. Clear all filters resets them.
The Filters panel of the Intune Application Templates page
The Filters panel: Install as, Makes the group, Tenant and Visible to role. Every filter is set to Any until you choose a value.
FilterShows the templates that
Install asinstall as System or as User.
Makes the groupmake a Required group, an Available group or an Uninstall group, or No groups (none of the three).
Tenantare copied to the chosen tenant. The list offers the tenants your role may use.
Visible to rolethe chosen role may use. A role that sees all templates matches every template.

The filters and the search work together: a template must match all of them to be listed.

Export CSV Export CSV saves every template that matches the search and the filters, on all pages, with the full tenant and role lists. The file has the Template ID column, which is hidden in the grid. Keep it: the API and other tools find a template by its ID.

4 The template window

Click Add new template to make a template, or Edit on a row to change one. The window has five tabs. Cancel closes it without saving. Save stores the template and closes the window.

The General tab of the Intune application template window
The template window, General tab: the template name, the featured switch, the description, the three group checkboxes with an example of the group name for 7-Zip, and the parent group.

General

  • Template name is required and must be unique (capital letters do not matter).
  • Groups made for each new application: tick Required install group, Available install group and/or Uninstall group. The example under each switch shows the group name, built from the group prefix and suffixes set in Configuration.
  • Add the new groups to this group (optional): the Intune group the new groups are added to. Empty the field for no parent group.
  • Scope tags appear only when scope tags are switched on for Intune applications.

Program

  • The MSI and Script / EXE install and uninstall command lines. {file_name} is replaced with the installer file and {product_code} with the MSI product code when an application is made.
  • Install behavior (System or User), Device restart behavior, Installation time required in minutes, and Allow available uninstall.

Return codes

  • A table of the exit codes and their meaning: Success, Failed, Soft reboot, Hard reboot or Retry.
  • Add a code with its type. Use the Edit and Delete icons on a row to change or remove a code. Reset to standard puts back the standard list.
  • The codes are saved with the template when you click Save; Cancel on the window drops the changes.

Requirements

  • The architectures (32-bit, 64-bit), the minimum Windows release, free disk space in MB, physical memory in MB, logical processors and CPU speed in MHz. Leave a field empty for no requirement.
The Who can use it tab of the Intune application template window
The Who can use it tab: three lists side by side, Tenants, Package security groups and Security roles. Each shows how many are chosen, and has a search box.

Who can use it

  • Tenants: applications are made on the tenant of the user, and copied to the tenants chosen here. Only the tenants your role may use are listed.
  • Package security groups: who can see the applications made with this template.
  • Security roles: who may use this template. The role you are signed in with is always added.

5 Fields and buttons

ControlWhat it does
Add new templateOpens an empty template window.
SearchFinds templates by name. Press Enter to add the search value as a token.
FiltersOpens the filter panel. Clear all filters resets it.
Export CSVDownloads every matching template with the Template ID, the full tenant and role lists.
List / TilesChanges the view. Tiles show each template as a card.
EditOpens the template window for the row.
DeleteOpens the Delete window for the template.
Cancel / SaveIn the template window: leave without changes, or store the template and close the window. Save refuses an empty name and a name that another template already uses.

6 Best practices

TopicRecommendation
One template per kind of applicationFor example one for MSI installers and one for EXE installers with silent switches. A template with a name that says what it installs is easier to choose later.
Name the template clearlyUse the application or the kind of install in the name, so the name is enough to choose the right one when you create an application.
Limit who can use itGive the template to the roles that need it under Who can use it. Keep templates for testing away from roles that deploy to everyone.
Check the groupsLook at the example group names before you save, so the groups are named the way your team expects.
Set return codes onceStart from Reset to standard and add only the codes your installer uses. A wrong reboot type causes a restart that users do not expect.
Keep a template ID listUse Export CSV to keep a copy of the templates and their IDs. The file is what other tools need.
Use the filters for reviewFilter by Visible to role to see what a role can use, or by Tenant before you change a tenant's templates.

7 Troubleshooting

SymptomCause and what to do
No templates match your criteriaThe search or a filter hides every template. Click Clear all filters and clear the search tokens.
A template is not in the listThe list shows only the templates your role may use. Ask an administrator to check the Who can use it tab of the template, or your role on the Security roles page.
Template name cannot be empty.Type a name in Template name on the General tab.
A template with the same name already exists.Names are compared without capital letters. Choose another name.
The return code is not a valid number.The code must be a whole number, for example 3010. Correct it and click Add or Update.
This return code is already assigned.Each code can appear only once. Change the existing row instead of adding it again.
The group examples show the wrong namesThe prefix and suffixes come from Configuration. Change them there; the examples follow.
Tenants shows The user's tenantNo other tenant is chosen. This is normal: applications are made on the tenant of the user only.
Visible to shows Administrators onlyNo role has been given the template. Only administrators see it until a role is added on the Who can use it tab.
The CSV file has fewer templates than the pageThe export follows the search and filters. Clear them, then export again.