Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Hi @Saif Almodares,
Thank you for the follow‑up.
Here is a clear Intune‑first remediation plan that answers your three questions:
1. Remove the Teams Machine‑Wide Installer (MWI)
The classic MWI silently stages a per‑user install into AppData\Local\Microsoft\Teams at sign‑in, which is why legacy binaries keep reappearing. Microsoft’s uninstall guidance notes automatic removal may fail, so admins should proactively uninstall MWI.
Intune steps:
- Apps → Add → Windows app (Win32)
- Upload a small placeholder installer (any benign file; the action is driven by the command).
- Install command (cmd.exe): msiexec /x {731F6BAA-A986-45A4-8936-7C3AAAAA760B} /qn /norestart
- Detection: confirm the product code is absent from
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{731F...760B}(and WOW6432Node). - Assignment: Required to target device groups.
2. Remove Teams leftovers in user AppData (no scripts)
If classic Teams was ever present, user profiles can retain:
-
%LOCALAPPDATA%\Microsoft\Teams -
%APPDATA%\Microsoft\Teams
Preferred (if you have AD/GPO):
- Use Group Policy Preferences (GPP) → User Configuration → Preferences → Windows Settings → Folders/Files
- Create items with Action = Delete for both paths above.
- GPP deletes the folders at logon/Group Policy refresh without any scripting.
Intune‑only environments (no on‑prem GPO):
- Remove the MWI (step 1) so the folder isn’t re‑created.
- Deploy new Teams (step 3) so devices stop using the legacy path.
- For the one‑time cleanup of existing remnants, use a temporary GPO (if hybrid) or an RMM tool that supports non‑script file actions.
3. Install new Teams (work or school) via Intune (no scripts)
You have two supported choices:
A) Line‑of‑Business (MSIX)
- Download
MSTeams‑x64.msix(Teams for work/school). - Apps → Add → Windows app (MSIX) → upload → Assign as Required.
- Ensure WebView2 Runtime is present and Delivery Optimization (DO) is enabled (Teams uses DO for updates; Download Mode 100 (Bypass) isn’t supported).
B) Microsoft Store (new) via Intune
- Apps → Add → Microsoft Store app (new)
- Search “Microsoft Teams (work or school)” (Microsoft) → Assign as Required.
- This aligns with Microsoft’s bulk‑deploy guidance for the new Teams MSIX client
4. Prevent Office from re‑adding classic Teams
- Update the Microsoft 365 Apps deployment to exclude Teams (classic) so Office doesn’t stage the legacy per‑user installer again.
5. Ensure users get work Teams only (not personal)
- If Microsoft Teams (personal) is present, add that Store app in Intune and set Assignment = Uninstall, leaving only Microsoft Teams (work or school) for your organization.
I hope this helps you address your concern quickly. I'm glad to assist and truly hope the information provided has been useful. Please feel free to reach out anytime if you need further assistance.
If you find my post helpful, kindly consider marking it as the accepted answer. Doing so can assist others in the community who may have similar questions in finding solutions more quickly.
Thank you for your kindness and contributions to the forum.
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.