Intune uninstall applications

Andreas 1,331 Reputation points
2024-04-07T18:25:04.7033333+00:00

Hi,

Hyrbid environment with MDM Intune.

I am wondering what is the best way to uninstall an application. We have several applications installed on machines that are not deployed from Intune, but have been manually installed over the years. Now we would like to remove X number of applications from X number of machines.

Take for example Sonicwall Netextender. We have 100 machines with this application, and they have different versions, so that means different locations within registry. What I would like, is a script that would search within add/and remove programs within Control Panel, and say something like, if the application name = SonicWall then silent uninstall and postpone reboot if that is necessary.

I am open for other suggestions, but not possible to add any extra cost, like introducing Microsoft Intune Enterprise App Management.

What do you do ?

Thanks for any reply.

/R

Andreas

Microsoft Security Intune Application management
Microsoft Security Intune Other
{count} votes

Accepted answer
  1. ZhoumingDuan-MSFT 17,165 Reputation points Microsoft External Staff
    2024-04-08T02:50:03.96+00:00

    @Andreas, Thanks for posting in Q&A.

    In General, Intune mainly focus on the app which are deployed via Intune. For the app which are not deployed via Intune, you can check to see if it can be removed via PowerShell script. Based as I know, some apps can also be uninstalled via Win32. You can check if the app has silently uninstalled command. If yes, then you can try to deploy the package via Intune win32 and assign the user or device group under uninstall assignment to see if the app can be uninstalled.

    https://learn.microsoft.com/en-us/mem/intune/apps/apps-win32-add#step-7-assignments

    Or you can create a PowerShell and upload it into Intune to uninstall apps.

    Here are content of script to uninstall Sonicwall Netextender you can refer.

    #Restart Process using PowerShell 64-bit

    If ($ENV:PROCESSOR_ARCHITEW6432 -eq "AMD64") {

    Try {

    &"$ENV:WINDIR\SysNative\WindowsPowershell\v1.0\PowerShell.exe" -File $PSCOMMANDPATH

    }

    Catch {

    Throw "Failed to start $PSCOMMANDPATH"

    }

    Exit

    }

    #Uninstall Sonicwall NetExtender

    Start-Process -FilePath "C:\Program Files (x86)\SonicWall\SSL-VPN\NetExtender\uninst.exe" /S

    Start-Process Msiexec.exe -wait -ArgumentList /'x {EF06A6A8-6B81-4A09-8223-789953972FFF} REBOOT=ReallySuppress /qn'

    #Remove Sonicwall NetExtender Profiles

    Remove-Item -Path "HKLM:\SOFTWARE\Sonicwall" /s

    Non-official, just for reference.

    Here is a link about how to deploy PowerShell script in Intune.

    https://learn.microsoft.com/en-us/mem/intune/apps/intune-management-extension

    Hope the above information can help.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.