Microsoft Teams – Fix “Sorry, we couldn’t connect you.” for multiple users’ profiles

By Saad Khamis

November 3, 2023

11995 views

In this blog I will share one way to fix Microsoft Teams “Sorry, we couldn’t connect you.” for multiple users’ profiles and in multiple workstations or virtual machines.

Introduction

Multiple users reported receiving “Sorry, we couldn’t connect you.” when they tried to join a meeting using Microsoft Teams.

Environment

Users are using Azure Virtual Desktop Microsoft Windows 10 multi-session. Multiple users are able to log on the VM at the same time. There are more than 20 VMs with more than 12 profiles per VM.

Issue Resolution

To resolve the issue for my account, I cleared the Teams cache using instructions in Clear the Teams client cache.

  1. If Teams is still running, right-click the Teams icon in the taskbar, and then select Quit.
  2. Open the Run dialog box by pressing the Windows logo key  +R.
  3. In the Run dialog box, enter %appdata%\Microsoft\Teams, and then select OK.
  4. Delete all files and folders in the %appdata%\Microsoft\Teams directory.
  5. Restart Teams.

Clear Teams Cache in Multiple Profiles

We will follow the below steps to clear Teams cache from existing profiles on a single VM. To run the script, log on to the VM with an administrative account, use Enter-PSSession, or any other Microsoft supported command.

  1. Query C:\Users folder for existing users’ profiles.
  2. For each profile, delete all files and folders in the C:\Users\profile_name\AppData\Roaming\Microsoft\Teams directory.

Clear Teams Cache in Multiple Profiles in Multiple VMs or Workstations

We will run the above script for each VM/workstation. I ran the below script on a workstation that has access to all workstations listed in $Wksts and logged on with an account that has administrative privilege on all workstations listed in $Wksts.

Conclusion

Did you find this blog easy to follow and helpful to you? Let me know in the comments below.

Disclaimer

Purpose of the code contained in blog is solely for learning and demo purposes. Author will not be held responsible for any failure or damages caused due to any other usage.

Comments

There's no comments

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Windows – Get all installed patches, updates and hotfixes

By Saad Khamis 20345 views October 25, 2023

Azure – Get Storage Account Lifecycle Management Policy Rules

By Saad Khamis 33926 views October 12, 2023

Azure – NSG Flow Logs Explorer

By Saad Khamis 24143 views June 23, 2023

Azure App Registrations – Export certificates and secrets details

By Saad Khamis 21375 views December 13, 2022

Azure SQL Server: Get Azure SQL Server Firewall Rules

By Saad Khamis 35489 views August 25, 2022