Loading...

Proactive Remediation script: issue you may have when running a GUI and waiting for an action


In this post I will share with you a feedback about displaying a GUI through a Proactive Remediation script and issue you may have.


Context

- You have enrolled devices in Intune

- You have to run a script on devices

- This script should display a warning first

- A click on Next will continue the script

- Then this will run the main part of the script


For instance we can imagine a script that will update BIOS devices.

A warning is displayed to user and when he clickes on Next, the script will proceed to the BIOS update.

See here my blog post about updating BIOS devices with Intune.


The issue

Imagine the user lets the warning minimized because he planned to continue later, for instance 3hours later of at the end of the day.

Now when the user clickes on Next nothing appears, the next part of the script is not executed.


Why this issue ?

Actually when a Proactive Remediation script is executed there is a timeout of 3600 seconds.

You can check that in the following log: IntuneManagementExtension.log

This one is located in: C:\ProgramData\Microsoft\IntuneManagementExtension\Logs


If you open it with CMTrace you can see the timeout value as below:

Now let's check running process when the Proactive Remediation script is executed.

For that just check running process.

See below the result:

Let's check the same one hour later:

As you may noticed result is empty.


What does it mean ?

Your warning is still opened, but the main script that runs the next of the process is closed, meaning once you click on Next it has nothing to do.

Proactive Remediation 8292254609924299401

Enregistrer un commentaire

Accueil item

Award

Join me soon

Join me soon

Endpoint Manager award

Mes articles en français

Author of Books

PowerShell GUI & WPF Group

PowerShell GUI & WPF Group

Join the FPSUGR

Join the FPSUGR

Stats