,

Sign MSIX app packages with Device Guard service (DGSS v2)

Platforms
Windows
Products
IntuneMSIX
Result
Signed MSIX apps install from Company Portal, isolated in containers, even several versions of the same app

Overview

Repackage an EXE or MSI installer as MSIX with the MSIX Packaging Tool, sign it, and deploy it with Intune as a line-of-business app.

It's been a while since my last post about app management. When you move to modern device management, don't forget modern app formats like MSIX (released in 2018), a package format for almost any Windows app, including apps that ship as MSI or EXE.

MSIX packages must be signed, usually with a code signing certificate (public or private). In 2021 you could also sign them through your Microsoft Entra ID tenant with Device Guard Signing Service v2 (DGSS v2), without your own certificate (see signing preference):

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 1

A device installs an MSIX package only if it's signed and trusted, which usually means the root certificate is in the Local Machine store (Trusted Root Certification Authorities). For DGSS v2 that root certificate had to be on every device that gets the package.

In this post I create an MSIX package from an existing installer (EXE or MSI), sign it with DGSS v2 and deploy it with Intune.

Prerequisites

Before you start, check that you have the following.

What you need

checked 10/2026

Area What you need Docs
Licence Microsoft Intune Plan 1 Licensing
Admin role Application Manager in Intune for the app, and Policy and Profile Manager for the certificate profile Roles
Devices A clean packaging machine on Windows 10 1809 or later, for example the Hyper-V Quick Create packaging VM Quick CreateTool
PKI A way to sign the package: Azure Artifact Signing or a code signing certificate (DGSS v2 is retired) SigningArtifact Signing
The signing root certificate trusted on devices (Intune trusted certificate profile) Trusted cert
App The Windows installer you want to package (MSI, EXE, ClickOnce, App-V or script) Create package

Configuration

The first step shows the retired DGSS v2 setup for reference; steps 2 and 3 still work today.

Register an app in Microsoft Entra ID for DGSS v2

Microsoft's steps were in Sign an MSIX package with Device Guard signing (kept for reference). In the Microsoft Entra admin center, select New registration:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 3

Enter a name (DGSS v2) and under Redirect URI select Public client (mobile & desktop) with https://dgss.microsoft.com:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 4

Under API permissions, add a permission. Under APIs my organization uses, search for Windows Store for Business:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 5

Select Delegated permissions and user_impersonation:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 6

Finally, select Grant admin consent:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 7

Create the MSIX package

On my Windows 10 PC with Hyper-V I created an MSIX Packaging Tool Environment VM with Hyper-V Quick Create, the fastest way to get a clean packaging machine:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 8

Start the VM:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 9

My VM had MSIX Packaging Tool January 2021 (1.2020.1219.0); see the release notes for current versions. Open the tool and select Application package:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 10

Select Create package on this computer. The Prepare computer page then shows:

  • MSIX Packaging Tool Driver: required
  • Windows Update: turned off during packaging
  • Windows Search: turning it off is recommended
Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 11

Choose the installer to package (EXE, MSI and so on). Under Signing preference I selected Sign with Device Guard signing version 2 and signed in with my Microsoft Entra ID account:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 12

If you forget to select Sign in with Microsoft before Next, the wizard doesn't warn you, but the installation fails on the device:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 13

If the account doesn't have the Device Guard signer role in Microsoft Store for Business, the tool tells you:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 14

Optionally add a time stamp server, any RFC 3161 compliant URL, see Sign an MSIX package. Select Yes, move on to create the package:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 15

The package is created:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 16
Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 17

Update (October 2026): in the MSIX Packaging Tool, choose to sign with a certificate file (.pfx) or don't sign the package, and sign it afterwards with SignTool and Azure Artifact Signing.

Upload the package to Intune

Upload the package to Intune as a line-of-business app:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 19

The MSIX apps show with type Windows Universal line-of-business app:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 20

Assign the apps to Windows devices that also have the DGSS v2 root certificate (Microsoft Enterprise Identity Verification Root Certificate Authority 2020), deployed with a trusted certificate profile.

User Experience

Finally, install the apps from Company Portal on a Windows device.

When you open the package, App Installer checks whether it's trusted (the root certificate must be on the device):

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 18

The user installs three MSIX apps from Company Portal:

  • 7-Zip 19.0
  • 7-Zip 21.0
  • VLC media player 3.0.12.0
Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 21

MSIX apps run isolated in a container, so you can install several versions of the same app, such as 7-Zip:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 22

All three apps show under Apps & features:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 23

The DGSS v2 root certificate that Intune installed, Microsoft Enterprise Identity Verification Root Certificate Authority 2020:

Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 24

Without this root certificate the installation fails with this error:

0x800B010A: A certificate chain could not be built to a trusted root authority.
Sign MSIX app packages with Device Guard service (DGSS v2) - screenshot 25

Discover more from HMASLOWSKI.COM

Subscribe now to keep reading and get access to the full archive.

Continue reading