Last active
December 3, 2019 18:47
-
-
Save mohitt/e8ca9c46c0247b64a2b38bc3b81c0cf8 to your computer and use it in GitHub Desktop.
Delete All Windows Temp files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-Location “C:\Windows\Temp” | |
Remove-Item * -recurse -force | |
Set-Location “C:\Windows\Prefetch” | |
Remove-Item * -recurse -force | |
Set-Location “C:\Documents and Settings” | |
Remove-Item “.\*\Local Settings\temp\*” -recurse -force | |
Set-Location “C:\Users” | |
Remove-Item “.\*\Appdata\Local\Temp\*” -recurse -force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment