Microsoft Teams user unable to login error 8009000B

By Nishant Rane

Published on:

Views: 178

Use this step-by-step guide to fully remove Microsoft Teams, including leftover folders and registry entries.


Before You Begin

  • Admin rights: You may be prompted for administrator approval.
  • Backup tip: If you’ll edit the registry, back it up first (regedit → File → Export).

Step 1: Close Microsoft Teams

  1. Right-click the Teams icon in the system tray and select Quit.
  2. Open Task Manager (Ctrl + Shift + Esc) and end any Teams.exe processes.

Step 2: Uninstall Microsoft Teams

  1. Open Settings (Win + I).
  2. Go to Apps → Installed Apps (or Apps & features).
  3. Search for Teams.
  4. Select Microsoft Teams (purple icon) → click Uninstall.
  5. Confirm by clicking Uninstall again and choose Yes if prompted for permission.

Step 3: Delete Remaining Teams Folders

Press Win + R, paste each path below, and delete the corresponding folder if it exists:

%appdata%\Microsoft\Teams
%localappdata%\Microsoft\Teams
%localappdata%\Microsoft\OneAuth
%localappdata%\Microsoft\IdentityCache

Step 4: Remove Teams Registry Keys (Advanced)

  1. Press Win + R, type regedit, press Enter.
  2. Navigate to each location below and delete the key if present:
HKEY_CURRENT_USER\Software\Microsoft\Teams
HKEY_LOCAL_MACHINE\Software\Microsoft\Teams
HKEY_CURRENT_USER\Software\Microsoft\Office\Teams

In HKEY_CURRENT_USER\Software\Microsoft\Office\Teams, you can also delete the values: homeuserupn and webaccountid (if present).

Warning: Editing the registry incorrectly can cause system issues. Back up first (File → Export) and proceed carefully.

Step 5: Restart Your Computer

After deleting folders and registry keys, restart Windows to complete the removal.


Optional: One-Click Cleanup with PowerShell (Run as Admin)

If you prefer automating the cleanup, run the script below in PowerShell (Admin):


# Close Teams
Get-Process -Name Teams -ErrorAction SilentlyContinue | Stop-Process -Force

# Uninstall Teams (new consumer app)
Get-AppxPackage *MSTeams* -AllUsers | Remove-AppxPackage -ErrorAction SilentlyContinue

# Uninstall classic Teams (if still present)
$apps = @(
  "Microsoft Teams",
  "Teams Machine-Wide Installer"
)
foreach ($app in $apps) {
  $pkg = Get-WmiObject -Class Win32_Product -Filter "Name LIKE '%$app%'" -ErrorAction SilentlyContinue
  if ($pkg) { $pkg.Uninstall() | Out-Null }
}

# Remove leftover folders
$paths = @(
  "$env:APPDATA\Microsoft\Teams",
  "$env:LOCALAPPDATA\Microsoft\Teams",
  "$env:LOCALAPPDATA\Microsoft\OneAuth",
  "$env:LOCALAPPDATA\Microsoft\IdentityCache"
)
foreach ($p in $paths) { if (Test-Path $p) { Remove-Item $p -Recurse -Force -ErrorAction SilentlyContinue } }

# Remove registry keys/values
$regKeys = @(
  "HKCU:\Software\Microsoft\Teams",
  "HKLM:\Software\Microsoft\Teams",
  "HKCU:\Software\Microsoft\Office\Teams"
)
foreach ($rk in $regKeys) { if (Test-Path $rk) { Remove-Item $rk -Recurse -Force -ErrorAction SilentlyContinue } }

# Remove specific values if the Office\Teams key still exists
$officeTeams = "HKCU:\Software\Microsoft\Office\Teams"
if (Test-Path $officeTeams) {
  foreach ($val in @("homeuserupn","webaccountid")) {
    Remove-ItemProperty -Path $officeTeams -Name $val -ErrorAction SilentlyContinue
  }
}

Write-Host "Teams cleanup complete. Please restart your PC."

Troubleshooting

  • Can’t uninstall: Ensure Teams is closed in Task Manager and try again.
  • Reappears after restart: Your organization may redeploy Teams via policy—contact IT.
  • Permissions error: Run Settings or PowerShell as Administrator.

That’s it! Microsoft Teams should now be completely removed from your Windows profile.

Leave a Comment