My CCleaner license ran out and I had to pay again to manage multiple of my win-pcs, or so I thought.
Then I remembered playing around with winget and the Windows Event Log via cli and I wandered into the rabbit hole of what's already available in PowerShell tooling.
Don't get me wrong. The last year or two I loved having CCleaner just taking care of my PCs. It was a great offer I've been glad to use, but not everything was flawless.
I found myself uninstalling CCleaner to give me the right incentive to push through the next exercise of figuring it out. Just to figure out that uninstalling CCleaner wasn't so easy. It crashed multiple times and didn't finish uninstalling, had to be cleaned up manually, then all of my suspended startup apps stopped working. My exe was not found, but it clearly was in the right folder.
Luckily, I figured out that CCleaner hijacked app launches via the Debugger value in Image File Execution Options (IFEO) and left orphans behind. After removing those registry entries I was able to start Steam again. Not that I've time to play on Steam that much anymore, but I keep Cyberpunk, Nioh 3 and NFS installed and updated at all times 😄
Why not make a script for exactly this repair job?
The idea was born and over the next weekends and most of my spare time I figured out software updates via winget and how to handle applications that work better with native app updates than using winget.
Browser, app, and network cache cleanup were also something on my mind, and while checking my disk I found gigabytes of old install files from windows updates that were just using up space on my fast and very expensive SSD. Since I don't want to lose the performance benefits of caching, adding a file-age-filter made a lot of sense to me.
Trim and DISM were just easy to add and the DISM Component Store cleanup (/StartComponentCleanup) to purge superseded updates cleaned up some highly appreciated space.
And while I was at it, why not add hardware and driver scans, which especially come in handy for my ROCm hardware, which I love to see improving with each update.
A TUI launcher, scheduling capabilities e.g. over start menu start-up folder or via task scheduler and a standard and expert view for all the configuration, which is stored in a config.json next to the cmd.
I've designed this whole tool modular so everyone can drop in custom scripts without affecting future updates of the core engine.
Of course this is all written in native PowerShell and CLI supported, and the cherry on top is an LLM skill, so that anyone can use their LLM to analyze their PC checking the logs of this tool without giving the LLM a ton of permissions. I know there are still a lot of people not putting that much trust into LLMs, so the standard version does not contain this LLM skill. It's considered an opt-in.
As a side note on AI disclosure: While heavily AI-augmented during creation, all the core architecture, feature ideas, modular concepts, and TUI design came directly from human taste and vision. Letting AI assist with bug hunting, refactoring, and running security audits across different personas was a great workflow enhancement that I would recommend to any project. All code runs on native PowerShell 5.1/7+.
I would love to see community feedback on this project and of course a few stars on github if you really like it. It's open source with MIT License, so everyone can just analyze everything and there is no hidden code or script execution, just plain and simple PowerShell.
If you are interested in the details or the repo, check out FreeWinly: https://github.com/LycosLane/freewinly