Microsoft Intune API to uninstall Teams app in an end user laptop.

Venkata Praveen Tellajeera 20 Reputation points
2024-11-11T09:55:09.5433333+00:00

Hi Team, as a troubleshoot step, we may need to uninstall Teams application in end user laptop, when an user raises incident. Please suggest if we can use any Intune api/command to perform this task dynamically.

Microsoft Security | Intune | Other
Microsoft Security | Microsoft Graph
{count} votes

Accepted answer
  1. ZhoumingDuan-MSFT 17,165 Reputation points Microsoft External Staff
    2024-11-12T01:42:38+00:00

    @Venkata Praveen Tellajeera,Thanks for posting in Q&A.

    After disscussing with our Graph support, I find that there is no such Graph APIs to uninstall Teams app.

    However, we can uninstall it via Intune or PowerShell and here are some methods you can refer to.

    Remove Microsoft Teams (personal):

    https://www.anoopcnair.com/remove-microsoft-teams-personal-with-intune/

    https://joymalya.com/disable-win11-built-in-teams-with-intune/#Disable_Win11_built-in_Teams_chat_with_Intune_using_Settings_Catalog

    Non-official, just for reference.

    Remove Microsoft Teams (Classic):

    https://learn.microsoft.com/en-us/answers/questions/1682356/a-powershell-script-to-remove-microsoft-teams-clas

    How to Add PowerShell to Intune:

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

    Hope it will 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

1 additional answer

Sort by: Most helpful
  1. Iufor 0 Reputation points
    2024-11-11T15:45:21.3633333+00:00

    Hi
    Your Answer is here
    To uninstall the Teams app from an end-user laptop using the Microsoft Intune API, you can create a PowerShell script to remove the app and deploy it via Intune. Use the /deviceManagement/deviceAppManagement endpoint to configure and push the script, ensuring it targets the correct device group. This script will locate and uninstall Teams silently on users' devices, allowing centralized management and deployment through Intune.

    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.