/build/static/layout/Breadcrumb_cap_w.png

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.


1 Comment   [ + ] Show comment
  • 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)

Posted by: feeldamped 4 years ago
Third Degree Blue Belt
2

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
Posted by: hardboee 4 years ago
White Belt
0

i was going through the same problem. what i did was went to the main computer drive with all the windows files (for me it was :C) and went to program files and uninstalled the teams installer document and then the problem was solved.


Posted by: rileyz 5 years ago
Red Belt
0

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.

Posted by: jmorton 4 years ago
Senior Yellow Belt
0

I just did this the other day, and it worked. Here is a screenshot of an Online k-script I set up, and it worked. Running MsiExec.exe /X{39AF0813-FA7B-4860-ADBE-93B9B214B914} /qn from command prompt gets rid of it.


 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ