GitPedia

UninstallTeams

Uninstall Teams in less than a minute.

From asheroto·Updated June 22, 2026·View on GitHub·

UninstallTeams is a PowerShell script that allows you to quickly uninstall Microsoft Teams from all locations on your Windows machine. Desktop and Start Menu shortcuts are also removed. The project is written primarily in PowerShell, distributed under the GNU General Public License v3.0 license, first published in 2022. Key topics include: change, chat, disable, enable, erase.

Latest release: 1.2.5
August 1, 2024View Changelog →

Uninstall Teams

GitHub Release Date - Published_At
GitHub Downloads - All Releases
GitHub Sponsor
<a href="https://ko-fi.com/asheroto"><img src="https://ko-fi.com/img/githubbutton_sm.svg" alt="Ko-Fi Button" height="20px"></a>
<a href="https://www.buymeacoffee.com/asheroto"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=seb6596&button_colour=FFDD00&font_colour=000000&font_family=Lato&outline_colour=000000&coffee_colour=ffffff](https://img.buymeacoffee.com/button-api/?text=Buy%20me%20a%20coffee&emoji=&slug=asheroto&button_colour=FFDD00&font_colour=000000&font_family=Lato&outline_colour=000000&coffee_colour=ffffff)" height="40px"></a>

UninstallTeams

UninstallTeams is a PowerShell script that allows you to quickly uninstall Microsoft Teams from all locations on your Windows machine. Desktop and Start Menu shortcuts are also removed.

You can also adjust the ability to access the Chat widget (Win+C) by enabling, disabling, or unsetting (default / effectively enabling). By default, the chat widget is enabled (unset). You can disable it by running the script with the -DisableChatWidget parameter. The -AllUsers parameter can be used to apply the setting to all user profiles on the machine, excluding the current one, as they are not applied to the current user profile (HKLM/HKCU registry hives).

By default when installing Microsoft Office, Teams is installed. To prevent Teams from being installed when installing Office, you can run -EnablePreventTeamsInstall before you install Office. To re-enable Teams to be installed when installing Office, you can run -DisablePreventTeamsInstall. This is a machine-wide setting.

If you specify a paramter, it will not uninstall Teams. If you do not specify a parameter, it will uninstall Teams.

Microsoft Teams user data is not removed.

Note: If you just installed Microsoft Office, you may need to restart the computer once or twice and then run UninstallTeams to prevent Teams from reinstalling.

Setup

Note: For a stable experience, use one of the methods listed below (#1, #2, or #3) to fetch the latest version. Using the version directly from the GitHub repository is not advised, as it could be under active development and not fully stable.

This is the recommended method, because it always gets the public release that has been tested, it's easy to remember, and supports all parameters.

Open PowerShell as Administrator and type

powershell
Install-Script UninstallTeams -Force

Follow the prompts to complete the installation (you can tap A to accept all prompts or Y to select them individually.

Note: -Force is optional but recommended, as it will force the script to update if it is outdated.

The script is published on PowerShell Gallery under UninstallTeams.

Tip - How to trust PSGallery

If you want to trust PSGallery so you aren't prompted each time you run this command, or if you're scripting this and want to ensure the script isn't interrupted the first time it runs...

powershell
Install-PackageProvider -Name "NuGet" -Force Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted

Method 2 - One Line Command (Runs Immediately)

The URL asheroto.com/uninstallteams always redirects to the latest code-signed release of the script.

If you just need to run the basic script without any parameters, you can use the following one-line command:

powershell
irm asheroto.com/uninstallteams | iex

Due to the nature of how PowerShell works, you won't be able to use any parameters like -DisableOfficeTeamsInstall with this command. You can either use Method #1, #3, or if you absolutely need to use a one-line command with parameters, you can use the following:

powershell
&([ScriptBlock]::Create((irm asheroto.com/uninstallteams))) -DisableOfficeTeamsInstall

Method 3 - Download Locally and Run

Usage

In PowerShell, type

powershell
UninstallTeams

This will execute the script and uninstall Microsoft Teams from your machine.

Parameters

These options are used independent of the main script. If you do not use any options, the script will uninstall Teams. If you use any of the options, the script will not uninstall Teams.

UninstallTeams provides additional options to manage the Chat widget (Win+C) for Microsoft Teams, as well as the ability to prevent Teams from being installed when installing Microsoft Office.

ParameterDescription
-EnableChatWidgetEnables the Chat widget (Win+C) for Microsoft Teams.
-DisableChatWidgetDisables the Chat widget (Win+C) for Microsoft Teams.
-UnsetChatWidgetRemoves the Chat widget value, effectively enabling it since that is the default.
-AllUsersApplies the Chat widget setting to all user profiles on the machine.
-EnableOfficeTeamsInstallEnables the ability for Office to install Teams.
-DisableOfficeTeamsInstallDisables the ability for Office to install Teams.
-UnsetOfficeTeamsInstallRemoves the Office Teams registry value, effectively enabling it since that is the default.
-VersionOutputs the current version of the script.
-HelpDisplays the full help information for the script.
-CheckForUpdateChecks for updates to the script on GitHub.
-DebugDebug information is natively supported with additional information presented if used.

Contributing

If you'd like to help develop this project: fork the repo, edit, then submit a pull request. 😊

Contributors

Showing top 1 contributor by commit count.

View all contributors on GitHub →

This article is auto-generated from asheroto/UninstallTeams via the GitHub API.Last fetched: 6/26/2026