Skip to content

ebasham/ps1-scripts-maint-upkeep-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

WinMaintSuite

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.


Quick Start

Right-click Launch-WinMaintSuite.bat Run as administrator

Or open an admin PowerShell and run:

.\Maintenance.ps1

Parameters

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

Usage Examples

# Quick cleanup
.\Maintenance.ps1 -Modules "TempCleanup,AppCache,EventLog" -Force

# Full deep maintenance
.\Maintenance.ps1 -IncludeBrowserCache -ExportEventLogs -EnableSecurePagefile

# Safe preview
.\Maintenance.ps1 -DryRun

Reports

JSON maintenance reports are saved to:

%USERPROFILE%\MaintenanceReports

Module Structure

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

About

Handy Powershell Scripts for Win11 Happiness

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors