Need help - Cant uninstall apps via Powershell silently

ZZTop87 0 Reputation points
2024-08-10T01:26:01.7366667+00:00

So here is whats going on, We have a hybrid AD - Intune/SCCM environment. All of the AD pc's workloads are controlled via Intune, we are also piolting Autopoilt Full Intune pc's. All of the pc's are having the same issue.

The issue in detail is this, i am able to install apps manually, I am able to install apps silently. I am able to Uninstall apps manually via add or remove progrrams or scripts without the silent trigger, I am howerver NOT ABLE TO UNINSTALL SILENTLY.

Anythime i try to remove an app with powershell via Get-package > win32_Product > MSIEXCE.EXE or any other version it says it completes but the app is still listed and is usable.

I have tested this with 3 different pc's so far and several Intune remediation scripts that find issues and are showing recurring as the status of the remediation.

Two pc's are fresh autopoint installs of windows 11, other pc was a know good image used for the AD environment

Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
4,970 questions
Microsoft Configuration Manager
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,458 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Crystal-MSFT 48,001 Reputation points Microsoft Vendor
    2024-08-12T01:21:30.0033333+00:00

    @ZZTop87, Thanks for posting in Q&A. To deploy script via Intune, we need firstly ensure it can run successfully uninstall the app silently via the script on one device manually. Then we can consider deploying *it via Intune.

    From your description, it seems we don't find the uninstall command. if this is a msi, based on my experience, it will have silently uninstall command. For exe file, you need to contact the app provider to double confirm if they have such command.

    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.


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.