Force redeploy of Intune Applications using Powershell

Force redeploy of Intune Applications using Powershell

Ondrej Sebela's photo
Ondrej Sebela
ยทDec 15, 2021ยท

2 min read

Subscribe to my newsletter and never miss my upcoming articles

There can be times when you need to redeploy Win32App deployed from the Intune. Because the installation has failed too many times (so it won't be tried again) or just for testing purposes.

The solution is to delete registry key that correspond to such application from HKLM:\SOFTWARE\Microsoft\IntuneManagementExtension\Win32Apps\<scope>. image.png The tricky part here is that application is identified by its Intune ID not by name, so you will have to get the ID first.

How to get Intune Win32App ID

  • a) Easiest but most lame solution is to open such application page in Intune web portal and copy its ID from the URL image.png
  • b) More interesting solution is to use Graph API like Invoke-MSGraphRequest -Url "https://graph.microsoft.com/beta/deviceAppManagement/mobileApps?select=id,displayname" | Get-MSGraphAllPages

Invoke-IntuneWin32AppRedeploy to the rescue

If you want a ready-to-go solution, you can use my function Invoke-IntuneWin32AppRedeploy (now part of the IntuneStuff module) which gives you GUI with all deployed Intune Win32App(s), so you just select the correct one and hit OK to redeploy it.

To show users and apps names instead of IDs, call this function with parameter getDataFromIntune like ๐Ÿ‘‡ image.png

Otherwise, the result will be like this ๐Ÿ‘‡ image.png

Btw redeploy as such is caused by restarting Intune service IntuneManagementExtension.

95% of the function code is based on my Get-ClientIntunePolicyResult for getting RSOP-like results for Intune policies

Have fun โœ”

PS: If you need to redeploy script check this post .

Did you find this article valuable?

Support Ondrej Sebela by becoming a sponsor. Any amount is appreciated!

See recent sponsors |ย Learn more about Hashnode Sponsors
ย 
Share this