How do I use PSAppDeployTookit with Intune?

Invoke-ServiceUI.ps1 is a standalone script to launch ServiceUI.exe if a user is logged-on.
Because Intune is missing that feature (still at 80 votes!! :frowning_face: ) to make GUIs displayable to users, we have to silly things before we launch PDAST with Intune.

While instructions given here are good for people who know PSADT well and can read “between the lines”. While you could enter the long command line as shown at the bottom of the page, here’s a simpler way:

Step 1 - Obtain ServiceUI.exe

ServiceUI.exe is a MS tool that is part of something called MDT. (Get your before MS takes it down) Download that huge file and extract your copies of ServiceUI.exe, 64bit and 32 bit versions. (BTW: I only use 64 bit)

Place ServiceUI.exe in the same folder as Deploy-Application.ps1

Step 2 - Obtain Invoke-ServiceUI.ps1 and CMD files

In the files of the v3.10.1 release of PSADT, copy all the files except readme.md from \Examples\ServiceUI\ to the same folder as Deploy-Application.ps1

Step 3 - Make Intune call the sample CMDs

Go through the steps to create the Win32App in Intune as normal.

Then for your Win32app, in the Program tab enter:

▼ Enter this below ▼
Install command install_forceinteractive.cmd
Uninstall command uninstall_forceinteractive.cmd

CAVEAT: If you need to send custom parameters or have changed the name of Deploy-Application.ps1 you will need to change the sample CMD files.

1 Like