Professional Documents
Culture Documents
CONTA C T
Nero Blanco > Blog > Troubleshooting Microsoft Teams Logon
This is a bit of a sledgehammer to crack a nut scenario to get you back up and running on
teams. Where we have had to use this is for Tenant to Tenant migrations where the user
and their workstation simply wont connect to the new tenant, and it is persistent to the
legacy tenant. Also, every now and then we have had our own users just run into stuff
that won’t resolve itself with a reboot simple uninstall / uninstall.
It’s most likely that like back in the old days just deleting the cache would do the trick, but
belt & braces – go nuclear.
AutoStart Settings
Go to Teams and set it to not auto-start, nor open in background, or stay open when
running and don’t have it set for chat app. Then exit the application by right click on the
task bar and closing.
Once Teams is uninstalled, the cache files cleared and registry cleared, these should be
moot.
Home About Us Services Case Studies News, Blog & Resources
CONTA C T
Uninstall Teams
Quit Teams by right-clicking the Teams icon in the taskbar and choosing Close window.
In Windows, click on the Start button Start button > Settings > Apps
— Tip Windows Key + I takes you straight to settings
Delete
CONTA C TCache and other files
C:\Users\[Your Username]\AppData\Local\Microsoft
C:\Users\[Your Username]\AppData\Roaming\Microsoft
CONTA C T
C:\Users\[Your Username]\AppData\Roaming
Now select Teams Machine-Wide Installer, click Uninstall. Then follow the same process
described to delete any remnant cache files per above
CONTA C T
Registry
Optional: Search the Registry and CAREFULLY evaluate and delete any residual keys
for Teams or “Microsoft Teams”
Clear Credentials
Control Panel\User Accounts\Credential Manager
Home About Us Services Case Studies News, Blog & Resources
CONTA C T
e.g. Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy
s NT\CurrentVersion\ProfileList” -Name
ProfilesDirectory).ProfilesDirectory
$UniqueRenameKey =
([guid]::newguid()).tostring().replace(‘-‘,”)
try{
}
} catch {
}
if( -not $Renames ) {
Home About Us Services Case Studies News, Blog & Resources
$Renames = @()
CONTA C T
Foreach( $ProfileDirectory in
$ProfileDirectories ) {
$AppDataPackagesPath =
(‘{0}\AppData\Local\Packages’ -f
$ProfileDirectory.FullName )
$MicrosoftAADBrokerPluginPackages = Get-
ChildItem $AppDataPackagesPath -Directory
-Filter ‘Microsoft.AAD.BrokerPlugin_*’
Foreach(
$MicrosoftAADBrokerPluginPackage in
$MicrosoftAADBrokerPluginPackages ) {
$UserClassPath =
(‘{0}\AppData\Local\Microsoft\Windows\UsrC
lass.dat’ -f $ProfileDirectory.FullName )
}
if( $Renames ) {
try{
Set-ItemProperty
‘registry::HKLM\SYSTEM\CurrentControlSet\
Control\Session Manager’ -Name
PendingFileRenameOperations -Value
Home
$Renames
About Us
Services Case Studies News, Blog & Resources
CONTA C T
} catch {
New-ItemProperty
‘registry::HKLM\SYSTEM\CurrentControlSet\
Control\Session Manager’ -Name
PendingFileRenameOperations -Value
$Renames -PropertyType MultiString | Out-
Null
}
CONTA C T
REBOOT
Does Teams automatically reinstall?
No? Good
Reinstall Teams
Go to https://products.office.com/en-gb/microsoft-teams/download-app download and
reinstall, or go to https://teams.microsoft.com log in and re-install
Apple Mac
Teams Login Issues
Mac OS X –
Keychain Access:
Delete the entry called Microsoft Teams Identities Cache
https://support.office.com/en-us/article/How-to-remove-Office-license-files-on-a-Mac-
Home About Us Services Case Studies News, Blog & Resources
b032c0f6-a431-4dad-83a9-6b727c03b193
CONTA C T
Conrad Murray
Conrad Murray is a Microsoft Certified IT consultant working in IT for
over 20 years specialising in the Messaging arena and in particular
Office 365 and previously Microsoft Exchange On-Premises and IBM
Domino. Working with like minded colleagues now delivering very large
scale complex migrations from Office 365 to Office 365 (tenant to
tenant), Lotus Notes and On-Premises Microsoft Exchange to Office
365.
LOG IN WITH
OR SIGN UP WITH DISQUS ?
Name
Related posts:
CONTA C T
Remove Teams Info
from Calendar Invite –
Teams Coexistence Guest Account
Don’t Host Online
Pitfalls conflicts with Exchange
28th May, 2021 Online
29th September, 2020
15th May, 2020
READ M O R E
READ M O R E
READ M O R E
NEXT P O ST
Keep in touch