Files
management-scripts/Fix-ClearTeamsCache.ps1
T
2022-03-09 12:46:14 -05:00

7 lines
334 B
PowerShell

# 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