Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.65 KB

README.md

File metadata and controls

40 lines (31 loc) · 1.65 KB

WindowsClearCache

Simple scripts to clear temp files and browser cache/history

How To Run

To run this with parameters, do the following:

  1. Download the .zip file on the main page of the GitHub and extract the .zip file to your desired location, e.g. - c:\WindowsClearCache
  2. Once extracted, open PowerShell (or PowerShell ISE) as an Administrator
  3. Enable PowerShell execution: Set-ExecutionPolicy Unrestricted -Force (to allow executing unsigned code)
  4. On the prompt, change to the directory where you extracted the files: e.g. - cd c:\WindowsClearCache
  5. Next, to run the script, enter in the following: e.g. - .\DriveClean.ps1

Tested on following Windows Versions

Verified on the following platforms:

Windows Version Yes/No?
Windows Server 2019 Yes
Windows Server 2016 Yes
Windows Server 2012 R2 Yes
Windows Server 2012 Yes
Windows Server 2008 R2 Yes
Windows Server 2008 Yes
Windows Server 2003 No
Windows 10 Yes
Windows 8 ???
Windows 7 ???
Windows Vista No
Windows XP No
Windows 2000 No

It is likely to work on other platforms as well. If you try it and find that it works on another platform, please let me know.

Disclaimer

WARNING: I do NOT take responsibility for what may happen to your system! Run scripts at your own risk!