Wanted to share automation to clear the Microsoft Teams desktop client folder and restart application. Might help when troubleshooting dropped calls, slow client, and performance issues. Cheers

Source Code
Screenshots



References
- https://stackoverflow.com/questions/9725521/how-to-get-the-parents-parent-directory-in-powershell
- https://techibee.com/active-directory/powershell-search-for-a-user-without-using-ad-module/2872
- https://social.technet.microsoft.com/Forums/windows/en-US/5388624d-73d1-46d5-9944-d9143af50ca2/unable-to-find-type-systemwindowsmessagebox-runs-in-ise-but-not-from-powershell?forum=winserverpowershell
- https://www.itnator.net/clear-empty-microsoft-team-cache/?lang=en