Microsoft Teams Fixes
As much as I love Microsoft Teams, it's certainly caused me a few issues over the years. So I thought I'd collate some of the fixes I've gathered over the years.
Fully Uninstall Teams BAT file
Sometimes Teams just bugs out. Usually with any normal bit of software a reinstall also removes most of the leftover setup - but not in the case of Teams! Finding and rembering the specifics of where it keeps everything can be annoying, so it's easier run the following script:
@echo off
echo Please do not exit until finished.
REM Check if teams exists before trying to runif exist %localappdata%\microsoft\teams\update.exe (echo Uninstalling Teams cd %localappdata%\microsoft\teams\ update.exe -uninstall -s timeout 15 /NOBREAK cd %localappdata%\ del %localappdata%\Microsoft\Teams\update.exe del %appdata%\Microsoft\Teams /s /q /f del %localappdata%\Microsoft\Teams /s /q /f reg delete HKEY_CURRENT_USER\Software\Microsoft\Office\Teams\ /f
Echo Waiting for uninstallTimeout 15 /NOBREAKREM Customer specific fix - but also teams shouldn't ever be in the startup list!del "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\Microsoft Teams.lnk" /q /fdel "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\Microsoft Teams (1).lnk" /q /fdel "%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\Microsoft Teams - Copy.lnk" /q /f) else (echo Teams not found.)
Copy of the script can also be downloaded here.