From cabc7bcbbfbc84928609b17b7685c92d500e8997 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Wed, 9 Mar 2022 12:46:14 -0500 Subject: [PATCH] added script --- Fix-ClearTeamsCache.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Fix-ClearTeamsCache.ps1 diff --git a/Fix-ClearTeamsCache.ps1 b/Fix-ClearTeamsCache.ps1 new file mode 100644 index 0000000..2920c02 --- /dev/null +++ b/Fix-ClearTeamsCache.ps1 @@ -0,0 +1,7 @@ +# Inspired by: https://docs.microsoft.com/en-us/microsoftteams/troubleshoot/teams-administration/clear-teams-cache + +# Stop Teams if it's running +End-Process -Name "Teams" -Match -Force + +# Clear all cached content +Get-ChildItem -Path "${Env:AppData}\Microsoft\Teams" -Recurse | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue \ No newline at end of file