SOLVED

How to prevent Intune deployment of Windows LOB apps from rebooting computers during business hours

%3CLINGO-SUB%20id%3D%22lingo-sub-1127869%22%20slang%3D%22en-US%22%3EHow%20to%20prevent%20Intune%20deployment%20of%20Windows%20LOB%20apps%20from%20rebooting%20computers%20during%20business%20hours%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1127869%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20several%20.msi%20apps%20I'm%20deploying%20through%20Intune%20as%20Windows%20LOB%20apps.%20When%20these%20apps%20have%20updates%2C%20I%20upload%20the%20new%20.msi%20files%20to%20the%20'app%20package%20files'%20area%20of%20app%20properties.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20problem%20is%2C%20Intune%20seems%20to%20install%20these%20updates%20whenever%20it%20can%2C%20causing%20applications%20or%20PCs%20to%20force%20restart.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20way%20to%20prevent%20the%20automatic%20restarts%2C%20or%20better%20yet%2C%20to%20schedule%20when%20the%20updates%20happen%2C%20so%20we%20can%20make%20sure%20they%20happen%20outside%20business%20hours%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlternatively%2C%20I%20would%20like%20to%20update%20these%20.msi%20files%20in%20Intune%20via%20PowerShell%2C%20but%20I%20have%20been%20unable%20to%20find%20a%20way%20to%20manage%20these%20apps%20in%20PowerShell.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1127869%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMobile%20Device%20Management%20(MDM)%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESoftware%20Management%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1128043%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20prevent%20Intune%20deployment%20of%20Windows%20LOB%20apps%20from%20rebooting%20computers%20during%20business%20ho%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1128043%22%20slang%3D%22en-US%22%3EHi%20Andrew%2C%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20do%20you%20know%20Intune%20is%20updating%20the%20app%20and%20forcing%20the%20reboot%3F%20I%20think%20when%20you%20install%20MSI%20using%20Intune%20it%20stays%20on%20the%20same%20version%20only%20if%20you%20upload%20newer%20MSI%20file.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20feel%20this%20could%20be%20coming%20from%20different%20policy%20like%20Windows%20Update%20Ring%20or%20something.%20Could%20give%20us%20an%20example%20of%20MSI%20app%20that%20got%20updated%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks!%3CBR%20%2F%3EMoe%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1128082%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20prevent%20Intune%20deployment%20of%20Windows%20LOB%20apps%20from%20rebooting%20computers%20during%20business%20ho%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1128082%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F503735%22%20target%3D%22_blank%22%3E%40Moe_Kinani%3C%2FA%3E%26nbsp%3BI%20am%20installing%20the%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.zoom.us%2Fhc%2Fen-us%2Farticles%2F207373866-Zoom-Installers%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EZoom%20client%20and%20the%20Zoom%20Outlook%20plugin%3C%2FA%3E.%20Both%20in%20.msi%20form.%20The%20.msi%20files%20I%20upload%20have%20a%20higher%20version%20number%20than%20the%20previous%20ones%2C%20so%20I%20assume%20that's%20telling%20Intune%20it%20needs%20to%20update%20them.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20last%20time%20I%20uploaded%20a%20new%20.msi%20for%20the%20Outlook%20plugin%2C%20not%205%20minutes%20later%20my%20users%20started%20complaining%20that%20their%20Outlook%20had%20just%20restarted%20itself.%20(My%20own%20did%20as%20well.)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20the%20last%20time%20I%20uploaded%20a%20new%20.msi%20for%20the%20Zoom%20client%20itself%2C%20my%20computer%20(which%20is%20assigned%20to%20the%20app)%2C%20restarted%20without%20warning.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20our%20Windows%20Update%20rings%20configured%20to%20reboot%20during%20the%20maintenance%20window%20and%20not%20during%20business%20hours.%20And%20Windows%20Update%20usually%20warns%20that%20it's%20about%20to%20reboot.%20In%20this%20case%2C%20there%20is%20no%20warning.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1128188%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20prevent%20Intune%20deployment%20of%20Windows%20LOB%20apps%20from%20rebooting%20computers%20during%20business%20ho%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1128188%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F79336%22%20target%3D%22_blank%22%3E%40Andrew%20Colombino%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESorry%20about%20the%20misunderstanding!%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EIn%20this%20case%2C%20you%20don%E2%80%99t%20have%20way%20to%20schedule%20the%20update%20via%20Intune.%20Have%20you%20tried%20%2Fnorestart%20switch%20in%20Program%20tab%3F%20I%20think%20this%20can%20do%20it%20for%20you.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMoe%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1128194%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20prevent%20Intune%20deployment%20of%20Windows%20LOB%20apps%20from%20rebooting%20computers%20during%20business%20ho%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1128194%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F503735%22%20target%3D%22_blank%22%3E%40Moe_Kinani%3C%2FA%3E%26nbsp%3BNo%20need%20to%20apologize.%20Thanks%20for%20helping%20figure%20this%20out.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20docs%20say%20not%20to%20use%20msiexec%20command%20arguments%2C%20and%20to%20use%20a%20Win32%20app%20instead%20for%20that.%20I%20might%20need%20to%20give%20that%20a%20try.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1128242%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20prevent%20Intune%20deployment%20of%20Windows%20LOB%20apps%20from%20rebooting%20computers%20during%20business%20ho%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1128242%22%20slang%3D%22en-US%22%3EYou%20have%20two%20real%20options%3A%3CBR%20%2F%3E-%20Use%20a%20%2Fnorestart%20switch%20for%20the%20MSI%20file%3CBR%20%2F%3E-%20Use%20win32%20app%20and%20configure%20the%20return%20codes%3CBR%20%2F%3E%3CBR%20%2F%3EI%20prefer%20the%20latter%20as%20Win32%20are%20the%20real%20way%20to%20go%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1128279%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20prevent%20Intune%20deployment%20of%20Windows%20LOB%20apps%20from%20rebooting%20computers%20during%20business%20ho%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1128279%22%20slang%3D%22en-US%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.petervanderwoude.nl%2Fpost%2Fworking-with-the-restart-behavior-of-win32-apps%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.petervanderwoude.nl%2Fpost%2Fworking-with-the-restart-behavior-of-win32-apps%2F%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1128325%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20prevent%20Intune%20deployment%20of%20Windows%20LOB%20apps%20from%20rebooting%20computers%20during%20business%20ho%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1128325%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F186539%22%20target%3D%22_blank%22%3E%40Thijs%20Lecomte%3C%2FA%3E%26nbsp%3BThanks%2C%20it%20sounds%20like%20Win32%20apps%20are%20the%20way%20to%20go.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

I have several .msi apps I'm deploying through Intune as Windows LOB apps. When these apps have updates, I upload the new .msi files to the 'app package files' area of app properties.

 

The problem is, Intune seems to install these updates whenever it can, causing applications or PCs to force restart.

 

Is there a way to prevent the automatic restarts, or better yet, to schedule when the updates happen, so we can make sure they happen outside business hours?

 

Alternatively, I would like to update these .msi files in Intune via PowerShell, but I have been unable to find a way to manage these apps in PowerShell.

8 Replies
Highlighted
Hi Andrew,

How do you know Intune is updating the app and forcing the reboot? I think when you install MSI using Intune it stays on the same version only if you upload newer MSI file.

I feel this could be coming from different policy like Windows Update Ring or something. Could give us an example of MSI app that got updated?

Thanks!
Moe
Highlighted

@Moe_Kinani I am installing the Zoom client and the Zoom Outlook plugin. Both in .msi form. The .msi files I upload have a higher version number than the previous ones, so I assume that's telling Intune it needs to update them.

 

The last time I uploaded a new .msi for the Outlook plugin, not 5 minutes later my users started complaining that their Outlook had just restarted itself. (My own did as well.)

 

And the last time I uploaded a new .msi for the Zoom client itself, my computer (which is assigned to the app), restarted without warning.

 

We have our Windows Update rings configured to reboot during the maintenance window and not during business hours. And Windows Update usually warns that it's about to reboot. In this case, there is no warning.

Highlighted

@Andrew Colombino 

 

Sorry about the misunderstanding!

In this case, you don’t have way to schedule the update via Intune. Have you tried /norestart switch in Program tab? I think this can do it for you.

 

Moe

Highlighted

@Moe_Kinani No need to apologize. Thanks for helping figure this out.

 

The docs say not to use msiexec command arguments, and to use a Win32 app instead for that. I might need to give that a try.

Highlighted
Best Response confirmed by Andrew Colombino (Occasional Contributor)
Solution
You have two real options:
- Use a /norestart switch for the MSI file
- Use win32 app and configure the return codes

I prefer the latter as Win32 are the real way to go
Highlighted

@Thijs Lecomte Thanks, it sounds like Win32 apps are the way to go.

Highlighted