Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

powershell-utilities

A collection of PowerShell scripts for Windows administration, optimization, and system maintenance.

Requirements

  • Windows PowerShell 5.1 or PowerShell 7+
  • Run the following command once if script execution is blocked:
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned

Usage

  1. Clone or download this repository.
  2. Open PowerShell in the project root folder.
  3. Run any script using its relative path, for example:
./scripts/system-booster.ps1
./scripts/deep-cleaner.ps1
  1. Review the contents of each script before executing it.

Included Scripts

system-booster.ps1

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

deep-cleaner.ps1

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

Security Notice

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.

Project Structure

powershell-utilities/
├── README.md
├── LICENSE
├── .gitignore
└── scripts/
    ├── system-booster.ps1
    └── deep-cleaner.ps1

About

Collection of high-performance PowerShell scripts for Windows system optimization and deep maintenance tasks.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages