A collection of PowerShell scripts for Windows administration, optimization, and system maintenance.
- Windows PowerShell 5.1 or PowerShell 7+
- Run the following command once if script execution is blocked:
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned- Clone or download this repository.
- Open PowerShell in the project root folder.
- Run any script using its relative path, for example:
./scripts/system-booster.ps1
./scripts/deep-cleaner.ps1- Review the contents of each script before executing it.
This script helps improve system performance by:
- detecting whether it is running with administrator privileges
- switching the power plan to High Performance using powercfg
- stopping non-critical services such as SysMain or Windows Search
- clearing the RAM standby list using EmptyStandbyList.exe
- saving the original state and allowing rollback with the -Revert parameter
This script performs a deeper system cleanup by:
- verifying administrator privileges
- running sfc /scannow and DISM /Online /Cleanup-Image /RestoreHealth
- safely cleaning the temporary folders from $env:TEMP and C:\Windows\Temp
- deleting Event Viewer logs with wevtutil
- showing free space before and after execution and the total space reclaimed
- generating a final log with the result of each operation
Before running any script, make a backup of any files or settings it may affect. Review the code carefully and run it only if you understand its impact.
powershell-utilities/
├── README.md
├── LICENSE
├── .gitignore
└── scripts/
├── system-booster.ps1
└── deep-cleaner.ps1