Running PowerShell command in uninstall command Intune

Alex Demetriou 40 Reputation points
2024-08-13T14:09:08.7866667+00:00

In the Intune Win32app section, after choosing the app package file and going into the Program, can I run a PowerShell command to uninstall the app? I added a picture to show specifically what I'm talking about. The command would be something like this:

%SystemRoot%\Sysnative\WindowsPowerShell\v1.0\powershell.exe

Is this just gonna start a visible PowerShell window? Is there another way of getting it done this way? Because I can't find the uninstall.exe for Microsoft Teams Personal.

Screenshot 2024-08-13 100346

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

2 answers

Sort by: Most helpful
  1. Nick Eckermann 606 Reputation points
    2024-08-13T18:51:19.0033333+00:00

    Are you specifically looking for a way to uninstall the personal version of Teams for users?
    You can do this a few ways so I just want to confirm that is what you are looking to do.


  2. Crystal-MSFT 53,981 Reputation points Microsoft External Staff
    2024-08-14T01:21:03.57+00:00

    @Alex Demetriou, Thanks for posting in Q&A. For the uninstall command, you can try "powershell -executionpolicy bypass -file <uninstall script name>". Here is a link you can refer.

    https://thenewnumber2.com/2021/10/25/using-intune-win32-apps-instead-of-intune-powershell-scripts/

    Note: Non-Microsoft link, just for the reference.

    To remove Teams Personal, there are other method, here is one via remediation for your reference.

    https://joymalya.com/disable-win11-built-in-teams-with-intune/#Remove_Win11_built-in_Teams_chat_with_Intune_using_PowerShell

    Note: Non-Microsoft link, just for the reference.

    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.

    0 comments No comments

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.