Show-InstallationRestartPrompt in Intune

Hi, I’m running a simple command to inform an end user that their device needs to do a restart.

Show-InstallationRestartPrompt -NoCountdown

I got the package executed via CMD and confirm getting the prompt. However, when I uploaded the package into Intune, there is no prompt and I’m getting this message in the logs:

Bypass Installation Restart Prompt [Mode: NonInteractive]

I do confirm that the package is set Interactive by default in Param: [string]$DeployMode = ‘Interactive’

What am I missing? Any suggestions are welcome. Thanks!

Show-InstallationRestartPrompt is a GUI.

It doesn’t show because PSADT is being run NonInteractive somehow under Intune.

Look earlier in the log file as to why.

1 Like

Can you show a screenshot from Intune as to how toy are running the PSADT?

I think its a ring 0 vs 1 issue

I wish I could help you there. I don’t have access to InTune installation.
Maybe someone who does could help.

Using ServiceUI.exe, I managed to run PSADT as Interactive Mode via Intune, but oddly the installation prompt of PSADT is not appearing.

I ended up forgoing the installation prompt by PSADT, and instead using the device restart configuration in Intune itself to issue the prompt.

1 Like

Make sure you are using PSADT version 3.10.2. I had issues with 3.10.0 . Next, when setting up the app , get a copy of ServiceUI.exe 64-bit and place it in the same directory as deploy-application.exe/ps1. Next you want to package your PSADT package with the intune package utility. The command you want to use to start the install is: Serviceui.exe -process:Explorer.exe Deploy-Application.exe [deploymode options if needed]. It’s really fiddly, and I still run into issues with the code running correctly for no apparent reason, but when I get a working app, it seems to function fine, apart from a wait issue with dependencies in a chain I’m hoping to post about soon.