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

8 lines
388 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
LogMsg "Deleting all cached data for Microsoft Teams"
Get-ChildItem -Path "${Env:AppData}\Microsoft\Teams" -Recurse | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue