2022-03-09 12:46:14 -05:00
|
|
|
# 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
|
2022-03-09 12:59:33 -05:00
|
|
|
LogMsg "Deleting all cached data for Microsoft Teams"
|
2022-03-09 12:46:14 -05:00
|
|
|
Get-ChildItem -Path "${Env:AppData}\Microsoft\Teams" -Recurse | Remove-Item -Recurse -Force -ErrorAction SilentlyContinue
|