Releases: ikkxeer/PSCacheCleaner
3.0 Windows Cache Cleaner & Update/Optimize 🧹
Hello! I am pleased to bring one of the most important versions to date in which I will focus on completely improving the structure and speed of the code while incorporating a User Interface! 😊
All the code has finally been implemented as a compact graphical interface. In this case, I am still developing the graphical interface with new improvements, utilities and so on, but I will use this as a base.
So there are 2 different files:
- PSCacheCleaner.ps1 - No User Interface ❌
- PSCacheCleanerGUI.ps1 - With User Interface ✅
I have uploaded the files from the repository as a compressed file so that it weighs less and I can carry all the files in one.
There have been no new developments in the project beyond the user interface.
Example image:
Full Changelog: 2.5...3.0
2.4 Windows Cache Cleaner & Update/Optimize 🧹
Hello! This version 2.4 will focus mainly on improving code and performance, this new patch helps certain parts of the code that will make the user get more performance! 😊
In this new version the following changes have been made:
- Create file SECURITY.md ✅
- Discord temp error [SOLVED] ✅
- Adobe Premiere Pro temp error [SOLVED] ✅
- Nvidia temp error [SOLVED] ✅
- Adobe Photoshop logs clear ✅ #24
- Clear Opera cache ✅ #24
- Inside script control version ✅ #26
- Clear Net temp cache ✅ #27
- Clear System Root temp cache ✅ #28
- Clear Windows Update downloads temp ✅ #29
- Clear Crash Dump folder ✅ #30
- Bug clean recycle bin ✅ #31
Thank you very much for the support and I hope to be able to improve the code more and add new functions to it, I would love to receive proposals for improvements and new ideas, so I am open to any idea or fork! ✨
Full Changelog: 2.3...2.4
2.3 Windows Cache Cleaner & Update/Optimize 🧹
Hello! In this version I have focused on correcting errors that I have been encountering with users that I have put into testing in different environments with my script, I have resolved several of the bugs that I had reported, in addition to this I have added different improvements that we can see in the list of changes! 💻
In this new version the following changes have been made:
- Chrome temp cleaner error [SOLVED] ✅
- Error Handlling when checking modules [SOLVED] ✅
- Clear Outlook cache ✅
- Clear Epic Games cache ✅
- Create file CONTRIBUTING.md ✅
- Cleare Adobe Premiere Pro cache ✅
Thank you very much for the support and I hope to be able to improve the code more and add new functions to it, I would love to receive proposals for improvements and new ideas, so I am open to any idea or fork! ✨
Full Changelog: 2.2...2.3
2.2 Windows Cache Cleaner & Update/Optimize 🧹
Hello! In this version I wanted to improve Cache cleaning in major aspects, especially aimed at browsers. In addition, I have added several functionalities that I think will be useful for most people! 😎
In this new version the following changes have been made:
- Clean Cache NVIDIA ✅
- Clean Cache Google Chrome ✅
- Clean Cache Mozilla Firefox ✅
- Clean Cache Discord ✅
- Clean Cache Spotify ✅
- Clean Cache Edge ✅
- Update Microsoft Store apps ✅
- Handling errors when installing modules ✅
- Header at the beginning of the script ✅
Thank you very much for the support and I hope to be able to improve the code more and add new functions to it, I would love to receive proposals for improvements and new ideas, so I am open to any idea or fork! ✨
Full Changelog: 2.1...2.2
2.1 Windows Cache Cleaner & Update/Optimize 🧹
Hello! I am delighted to present a new version of the script, this time I have tried to improve various parts of the script to improve both its functionality, add new functionalities and make the performance much better than what it was before! 🔥
In this new version the following changes have been made:
- New function to clear Microsoft Store cache ✅
- New function to clear DNS cache ✅
- New feature to clean Recycle Bin (Optional) ✅
- More error handling ✅
- More information in the terminal ✅
- Extra comments to better understand the code ✅
- Better code structure and display style ✅
- Checking paths when cleaning directories to avoid errors ✅
Thank you very much for the support and I hope to be able to improve the code more and add new functions to it, I would love to receive proposals for improvements and new ideas, so I am open to any idea or fork! ✨
Full Changelog: 2.0...2.1
2.0 Windows Cache Cleaner & Update/Optimize 🧹
This PowerShell script is designed to automate various system maintenance tasks on Windows. It performs the following operations:
-
Check Administrator Privileges: Checks if the script is being run with administrative privileges. If not, it restarts the script with elevated privileges.
-
Install Required Module: Installs the
PSWindowsUpdatemodule if not already installed. -
Disk Optimization: Optimizes the C drive by defragmenting, retrimming, consolidating slabs, and optimizing tiers.
-
File Cleanup:
- Cleans up specified directories, including
C:\Windows\Prefetch,C:\Windows\SoftwareDistribution, temporary directories, and printer spooler directory. - Counts the number of files deleted during cleanup.
- Cleans up specified directories, including
-
Event Log Cleanup: Clears the Windows event logs.
-
Disk Cleanup (cleanmgr): Initiates the disk cleanup process in the background using
cleanmgrwith very low disk space and automatic cleanup options. -
Application Update (Optional):
- Asks the user if they want to update applications.
- Checks for the presence of the
wingetpackage manager. If installed, it upgrades all applications. - If
wingetis not installed, prompts the user to install it.
-
Windows Update (Optional):
- Asks the user if they want to update Windows Update.
- Installs available Windows updates from Microsoft Update and accepts all updates without a reboot.
How to Use
-
Right click and run the script.
-
Accept elevate permissions
-
Follow the on-screen prompts to proceed with various maintenance tasks.
Requirements
- Windows PowerShell 5.1 or higher
- Administrative privileges
PSWindowsUpdatemodule (automatically installed by the script if not present)wingetpackage manager (optional, for application updates)
Notes
- Ensure that you have a backup of important data before running any maintenance script.
- Review the script and customize it according to your specific requirements before execution.
Author
This script was authored by Ikkxeer
For any inquiries or issues, please contact @ikkxeer
Contributing
Contributions to enhance the script or address issues are welcome. Please open a GitHub issue or submit a pull request.
Full Changelog: 1.0...2.0
1.0 Windows Cache Cleaner [NOT WORKING] 🔎
This Python script automates the cleanup of unnecessary files in Windows, targeting temporary folders, the Prefetch directory, and SoftwareDistribution. Use it cautiously, understanding potential consequences.
Features
- Temporary Folder Cleanup: The script clears out files from the system's temporary folder (
%TEMP%). - Prefetch Directory Cleanup: It also removes files from the Prefetch directory (
C:\Windows\Prefetch), which may contain cached data for faster application loading. - Software Distribution Cleanup: Additionally, the script targets the SoftwareDistribution directory (
C:\Windows\SoftwareDistribution), commonly associated with Windows Update.
Usage
- Ensure Python is installed on your system.
- Save the script to a file with a
.pyextension (e.g.,cleanup_script.py). - Run the script by double-clicking it or executing it from the command line:
python cleanup_script.py.



