Microsoft Teams install automatically even after uninstall
Installed Teams via MSI file. (Teams not actually installed, no shortcuts appear)
After reboot per user Teams gets installed and shortcut on desktop added.
Works fine.
Now after uninstall nothing happen.
Uninstalled from program and features. Uninstalled successfully and shortcut removed.
Restarted machine. After few seconds Teams automatically gets installed.
Tried uninstallation with following command: This removes Teams but after restart automatically install again.
%localappdata%\AppData\Local\Microsoft\Teams\Update.exe --uninstall -s
Thanks for help in advance.
-
I experienced the same issue. I am not even sure how it got on the computer in the first place, but it kept reinstalling and prompting to log in. Very annoying. - JordanNolan 5 years ago
Answers (4)
Hi,
I was having this same problem earlier.
I was able to resolve this by uninstalling Microsoft Teams & another program called Teams Machine-Wide Installer.
I also ran this PowerShell script provided by Microsoft for Teams cleanup just in case:
<#
.SYNOPSIS
This script allows you to uninstall the Microsoft Teams app and remove Teams directory for a user.
.DESCRIPTION
Use this script to clear the installed Microsoft Teams application. Run this PowerShell script for each user profile for which the Teams App was installed on a machine. After the PowerShell has executed on all user profiles, Teams can be redeployed.
#>
$TeamsPath = [System.IO.Path]::Combine($env:LOCALAPPDATA, 'Microsoft', 'Teams')
$TeamsUpdateExePath = [System.IO.Path]::Combine($env:LOCALAPPDATA, 'Microsoft', 'Teams', 'Update.exe')
try
{
if (Test-Path -Path $TeamsUpdateExePath) {
Write-Host "Uninstalling Teams process"
# Uninstall app
$proc = Start-Process -FilePath $TeamsUpdateExePath -ArgumentList "-uninstall -s" -PassThru
$proc.WaitForExit()
}
if (Test-Path -Path $TeamsPath) {
Write-Host "Deleting Teams directory"
Remove-Item –Path $TeamsPath -Recurse
}
}
catch
{
Write-Error -ErrorRecord $_
exit /b 1
}
Comments:
-
Hi, you said that you used script to uninstall Teams and Teams-Wide Installer and after using that you used this script also is it? Please can you share the script that you used to uninstall Teams and Teams wide installer? I would appreciate it.
Thanks
John - oryx360 1 year ago
Sounds like the ActiveSetup stub is not getting remove. Have a hunt around in the registry to ensure its been removed after uninstall. If you are unsure on where to look, you can examine the MSI and go from there.
This is presuming you know how to work with MSIs.
Just to note, if you want to uninstall from all user profiles that logon that computer, you'll need to add the ActiveSetup stub with the uninstall string you mentioned.