Skip to content
The Lazy Administrator
  • Home
  • Disclaimer
  • Contact
  • About Me
  • Search Icon

The Lazy Administrator

Finding ways to do the most work with the least effort possible

Uninstall the built-in Chat from Microsoft Teams in Windows 11 with Intune

Uninstall the built-in Chat from Microsoft Teams in Windows 11 with Intune

October 9, 2021 Brad Wyatt Comments 2 comments

Table of Contents

  • Uninstall Chat for Teams with Intune
  • Remove the Application from the Task Bar
  • Review
  • Sources

Windows 11 comes with Chat from Microsoft Teams which is ‘a signature, lightweight experience brought right to the Taskbar to let Teams personal account users quickly start a video call or chat with friends and family.’1 The problem with this is that it is only available for Personal accounts and not for Work or School accounts. 

The new Teams experience on Windows 11 and Chat are intended for personal Microsoft accounts and will be available only to individuals using such accounts.

With this installed by default, and Teams for Work/School, you will have two versions of Microsoft Teams installed locally. This can be confusing to end users.

Uninstall Chat for Teams with Intune

Save the following PowerShell script locally, we will need to upload this to Intune

$MSTeams = "MicrosoftTeams"

$WinPackage = Get-AppxPackage | Where-Object {$_.Name -eq $MSTeams}
$ProvisionedPackage = Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -eq $WinPackage }
If ($null -ne $WinPackage) 
{
    Remove-AppxPackage -Package $WinPackage.PackageFullName
} 

If ($null -ne $ProvisionedPackage) 
{
    Remove-AppxProvisionedPackage -online -Packagename $ProvisionedPackage.Packagename
}

$WinPackageCheck = Get-AppxPackage | Where-Object {$_.Name -eq $MSTeams}
$ProvisionedPackageCheck = Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -eq $WinPackage }
If (($WinPackageCheck) -or ($ProvisionedPackageCheck))
{
    throw
}

Navigate to the Intune Admin Portal > Scripts > + Add, Give your new Script a proper name and description and then click Next

 

Next, select your script location and enable “

Select any Scope Tags, then click Next
In Assignments, add group(s) this script will run against. In my example I selected the “All Users” group. 
Finally, Review your configuration. If there are no issues, click Add
Important! Now just because its uninstalled does NOT mean it will be absent from the task bar. It will still be there and if the user clicks on the icon it will reinstall the application for them. Go to the next session to remove the icon from the task bar using Intune so your users won’t accidentally re-install the program.

Remove the Application from the Task Bar

To remove the application from the Windows 11 task bar, we need to create an Intune configuration profile. Reviewing Microsoft Policy CSP page we can see they have a CSP available to us. 
Go to the Intune Management Portal > Devices > Configuration Profile and click “+ Create Profile”. The Platform will be “Windows 10 or later”, Profile type will be Templates, and Template Name will be Custom
In the next pane, give your new configuration profile a proper name and description and then click Next
In the Configuration Settings panel, click Add and enter the following:
Name: RemoveChat
Description: Removes Windows 11 Teams Chat
OMA-URI: ./Device/Vendor/MSFT/Policy/Config/Experience/ConfigureChatIcon
Data Type: Integer
Value: 3
Give your policy any Scope Tags if necessary 
In the Assignments section, apply the policy to any Groups you want
Next, apply any Applicability Rules you’d like. I have selected to only apply to Windows 10 or 11 Enterprise machines that match by Assignments. 
Finally, Review your new Intune Configuration Profile. 

Review

Checking my PowerShell Script results in Intune, I can see that it successfully applied to my test device. On that device I can now search for Teams in the start menu or in the Program and Features panel and see it is no longer installed. (Remember, just because it is uninstalled does not mean the icon is removed from the start bar, if a user clicks the icon it will reinstall the program. You must do both parts)
After the Intune Configuration profile syncs, I can see my updated start bar that no longer has the Teams Chat program present.

Sources

1: https://techcommunity.microsoft.com/t5/microsoft-teams-blog/introducing-chat-from-microsoft-teams-on-windows-11-for-your/ba-p/2809877 

2: https://docs.microsoft.com/en-us/windows/client-management/mdm/policy-csp-experience#experience-configurechaticonvisibilityonthetaskbar

Brad Wyatt
Brad Wyatt

My name is Bradley Wyatt; I am a 5x Microsoft Most Valuable Professional (MVP) in Microsoft Azure and Microsoft 365. I have given talks at many different conferences, user groups, and companies throughout the United States, ranging from PowerShell to DevOps Security best practices, and I am the 2022 North American Outstanding Contribution to the Microsoft Community winner.


Intune
Chat, Intune, Messaging, PowerShell, Teams, Windows 11

Post navigation

PREVIOUS
Easily Enable End Users to Manage Active Directory Users with PowerShell GUI
NEXT
From Standard User to Elevated Administrator: Run Elevated PowerShell Commands with PowerShell Studio and Impersonation

2 thoughts on “Uninstall the built-in Chat from Microsoft Teams in Windows 11 with Intune”

  1. John M says:
    October 13, 2021 at 3:21 am

    Just tried this, but found out this SCP is only support on Win11 Enterprise or Education. Not Win11 Pro 🙁

    Reply
  2. Thomas Deliduka says:
    November 3, 2021 at 2:09 pm

    I dunno, We have Windows Pro. I added a transcript logging and it actually flagged bigtime saying the commands needed elevated privilege’s, however, after logging out and in and rebooting, the app is not running.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Subscribe

Email


Categories

  • Active Directory (8)
  • AI (3)
  • API (1)
  • AutoPilot (2)
  • Azure (15)
  • Bicep (4)
  • Connectwise (1)
  • Defender for Cloud Apps (1)
  • Delegated Admin (1)
  • DevOps (6)
  • Graph (6)
  • Intune (15)
  • LabTech (1)
  • Microsoft Teams (6)
  • Office 365 (19)
  • Permissions (2)
  • PowerShell (50)
  • Security (1)
  • SharePoint (3)
  • Skype for Business (1)
  • Terraform (1)
  • Uncategorized (2)
  • Yammer (1)

Recent Comments

  • MD SHARIQUE AKHTAR on Modern Active Directory – An update to PSHTML-AD-Report
  • TommyBoich on How The ConnectWise Manage API Handles Pagination with PowerShell
  • LOTTERY 365 LOGIN on Windows LAPS Management, Configuration and Troubleshooting Using Microsoft Intune
  • SPRUNKI PHASE 6 on Get a New Computer’s Auto Pilot Hash Without Going Through the Out of Box Experience (OOBE)
  • Mohammad Sherbaji on Get a New Computer’s Auto Pilot Hash Without Going Through the Out of Box Experience (OOBE)

1,738,766 People Reached

© 2025   All Rights Reserved.