The powershell commands below are used for various specific folder cleanups for temp files and such

To remove extra GoToMeeting files that are created for various numbered versions under each user. Use the code below with the -whatif before running without it. This will tell you what files will be deleted so you get an idea. This is for the multiple folders in user/appdata/local/GoToMeeting

$users = Get-ChildItem C:\Users foreach ($user in $users){ $folder = "$($user.fullname)\AppData\Local\GoToMeeting*" If (Test-Path $folder) { Remove-Item $folder -Recurse -Force -ErrorAction silentlycontinue -WhatIf } }

$users = Get-ChildItem C:\Users foreach ($user in $users){ $folder = "$($user.fullname)\AppData\Local\Citrix\GoToMeeting*" If (Test-Path $folder) { Remove-Item $folder -Recurse -Force -ErrorAction silentlycontinue -WhatIf } }

$users = Get-ChildItem C:\Users foreach ($user in $users){ $folder = "$($user.fullname)\AppData\Local\Temp*" If (Test-Path $folder) { Remove-Item $folder -Recurse -Force -ErrorAction silentlycontinue -WhatIf } }

$users = Get-ChildItem C:\Users foreach ($user in $users){ $folder = "$($user.fullname)\Documents\Scribe\Tracing*" If (Test-Path $folder) { Remove-Item $folder -Recurse -Force -ErrorAction silentlycontinue -WhatIf } }

Get-ChildItem -Path C:\ProgramData\Microsoft\Windows\WER\ReportArchive -Include * | remove-Item -recurse -WhatIf

Get-ChildItem -Path C:\ProgramData\Microsoft\Windows\WER\ReportQueue -Include * | remove-Item -recurse -WhatIf