UninstallTeams
1.2.5
The script stops the Teams process, uninstalls Teams using the uninstall key, uninstalls Teams from the Program Files (x86) directory, uninstalls Teams from the AppData directory, removes the Teams AppxPackage, deletes the Microsoft
The script stops the Teams process, uninstalls Teams using the uninstall key, uninstalls Teams from the Program Files (x86) directory, uninstalls Teams from the AppData directory, removes the Teams AppxPackage, deletes the Microsoft Teams directory in AppData, deletes the Teams directory in AppData, removes the startup registry keys for Teams, and removes the Desktop and Start Menu icons for Teams.
Installation Options
Owners
Package Details
Author(s)
- asherto
Tags
PowerShell Microsoft Teams remove uninstall delete erase uninstaller widget chat enable disable change
Functions
Get-GitHubRelease CheckForUpdate Get-ChatWidgetStatus Set-ChatWidgetStatus Get-OfficeTeamsInstallStatus Set-OfficeTeamsInstallStatus Check-GitHubRelease Write-Section Get-UninstallRegistryKey Get-UninstallString Remove-Shortcut Remove-DesktopShortcuts Remove-StartMenuShortcuts
Dependencies
This script has no dependencies.
Release Notes
[Version 0.0.1] - Initial Release.
[Version 0.0.2] - Fixed typo and confirmed directory existence before removal.
[Version 0.0.3] - Added support for Uninstall registry key.
[Version 0.0.4] - Added to GitHub.
[Version 0.0.5] - Fixed signature.
[Version 0.0.6] - Fixed various bugs.
[Version 0.0.7] - Added removal AppxPackage.
[Version 0.0.8] - Added removal of startup entries.
[Version 1.0.0] - Added ability to optionally disable Chat widget (Win+C) which will reinstall Teams. Major refactor of code.
[Version 1.0.1] - Added URL to -CheckForUpdate function when script is out of date.
[Version 1.0.2] - Improve description.
[Version 1.0.3] - Fixed bug with -Version.
[Version 1.0.4] - Improved CheckForUpdate function by converting time to local time and switching to variables.
[Version 1.0.5] - Changed -CheckForUpdates to -CheckForUpdate.
[Version 1.1.0] - Various bug fixes. Added removal of Desktop and Start Menu shortcuts. Added method to prevent Office from installing Teams. Added folders and registry keys to detect.
[Version 1.1.1] - Improved Chat widget warning detection. Improved output into section headers.
[Version 1.1.2] - Improved DisableOfficeTeamsInstall by adding registry key if it doesn't exist.
[Version 1.1.3] - Added TeamsMachineInstaller registry key for deletion.
[Version 1.1.4] - Added Teams uninstall registry key for deletion.
[Version 1.2.0] - Improved functionality of uninstall key removal by detecting MsiExec product GUID to uninstall teams. Added additional startup registry keys.
[Version 1.2.1] - Added additional file and registry uninstall locations.
[Version 1.2.2] - Improved detection of registry uninstall keys. Improved error handling.
[Version 1.2.3] - Fixed bug when uninstalling Teams from the uninstall registry key and using MsiExec.exe.
[Version 1.2.4] - Added AutorunsDisabled registry keys for deletion.
[Version 1.2.5] - Improved path handling for Desktop and Programs folder paths by using special folders.
FileList
- UninstallTeams.nuspec
- UninstallTeams.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
1.2.5 (current version) | 139,520 | 8/1/2024 |
1.2.4 | 82 | 8/1/2024 |
1.2.3 | 159,934 | 1/7/2024 |
1.2.2 | 8 | 1/7/2024 |
1.2.0 | 692 | 10/14/2023 |
1.1.4 | 14 | 10/14/2023 |
1.1.3 | 8 | 10/14/2023 |
1.1.2 | 313 | 8/30/2023 |
1.1.1 | 36 | 8/25/2023 |
1.1.0 | 9 | 8/25/2023 |
1.0.3 | 33 | 6/20/2023 |
1.0.2 | 8 | 6/20/2023 |
1.0.1 | 8 | 6/20/2023 |
1.0.0 | 11 | 6/20/2023 |
0.0.8 | 20 | 5/2/2023 |
0.0.7 | 41 | 8/29/2022 |
0.0.6 | 15 | 8/29/2022 |
0.0.5 | 15 | 8/23/2022 |
0.0.3 | 13 | 8/23/2022 |
0.0.2 | 30 | 7/30/2022 |
0.0.1 | 15 | 7/30/2022 |