Handy PowerShell Scripts for Win11 Happiness
A lightweight Windows maintenance suite that cleans temp files, app caches, event logs, browser caches, and more with JSON reporting and dry-run support.
Right-click Launch-WinMaintSuite.bat Run as administrator
Or open an admin PowerShell and run:
.\Maintenance.ps1| Parameter | Description |
|---|---|
-Modules |
Comma-separated modules to run: TempCleanup, AppCache, EventLog |
-Force |
Skip confirmation prompts |
-IncludeBrowserCache |
Also clears Edge, Chrome, and Firefox caches |
-ExportEventLogs |
Exports Windows Event Logs to MaintenanceReports |
-EnableSecurePagefile |
Enables pagefile clear on shutdown |
-DryRun |
Preview actions without making changes |
# Quick cleanup
.\Maintenance.ps1 -Modules "TempCleanup,AppCache,EventLog" -Force
# Full deep maintenance
.\Maintenance.ps1 -IncludeBrowserCache -ExportEventLogs -EnableSecurePagefile
# Safe preview
.\Maintenance.ps1 -DryRunJSON maintenance reports are saved to:
%USERPROFILE%\MaintenanceReports
WinMaintSuite/
Maintenance.ps1 # Main entry point
Launch-WinMaintSuite.bat # Easy launcher (run as admin)
README.md
Modules/
TempCleanup/
TempCleanup.ps1
AppCache/
AppCache.ps1
EventLog/
EventLog.ps1
```
---
## Requirements
- Windows 10 / Windows 11
- PowerShell 5.1+
- Run as Administrator