Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $teamsProcess = Get-Process -Name "Teams" -ErrorAction SilentlyContinue
- if($teamsProcess) {
- Stop-Process $teamsProcess
- Start-Sleep -Seconds 10 #Because I can't figure out how to block until Teams.exe is killed
- }
- $userRootFolders = Get-ChildItem -Directory "C:\Users\"
- ForEach($folder in $userRootFolders) {
- $cacheDB = Join-Path $folder.FullName "\AppData\Roaming\Microsoft\Teams\IndexedDB"
- If(Test-Path($cacheDB)) {
- Remove-Item -Recurse -Path $cacheDB
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement