A safe, all-in-one PowerShell script to optimize Windows 11 for better performance, reduced bloat, and improved privacy.
| Step | Action | Details |
|---|---|---|
| 1 | System Info | Gathers baseline stats (RAM, disk, OS version) |
| 2 | Restore Point | Creates a System Restore point before any changes |
| 3 | Disk Cleanup | Cleans temp files, caches, Windows Update downloads, Recycle Bin |
| 4 | Startup Apps | Disables heavy auto-start apps (Docker, Chrome/Edge auto-launch, etc.) |
| 5 | Services | Disables unused services (Xbox, Telemetry, Fax, Maps, Insider) |
| 6 | Registry Tweaks | Faster boot, snappier menus, disables Cortana/Bing/ads/tips |
| 7 | Telemetry Tasks | Disables data collection scheduled tasks |
| 8 | Network | TCP optimization for lower latency, disables Wi-Fi Sense |
| 9 | Power Plan | Switches to High Performance power plan |
| 10 | Security Scan | Checks for unsigned/suspicious processes, verifies Defender status |
- Right-click PowerShell and select Run as Administrator
- Run:
Set-ExecutionPolicy Bypass -Scope Process -Force
.\Windows11_Optimizer.ps1- Follow the on-screen prompts
- Restart your PC when done
irm "https://raw.githubusercontent.com/Ublaze/Windows11-Optimizer/main/Windows11_Optimizer.ps1" -OutFile "$env:TEMP\Win11Opt.ps1"; Start-Process powershell -Verb RunAs -ArgumentList "-ExecutionPolicy Bypass -File $env:TEMP\Win11Opt.ps1"| Flag | Description |
|---|---|
-SkipRestore |
Skip creating a System Restore point |
-Silent |
Run without interactive prompts |
# Example: run silently without restore point
.\Windows11_Optimizer.ps1 -Silent -SkipRestore- Xbox Live Auth Manager, Game Save, Accessory Management, Networking
- Connected User Experiences and Telemetry
- Windows Insider Service
- Device Management WAP Push
- Fax, Downloaded Maps Manager, Geolocation Service, Retail Demo
- Docker Desktop, Chrome/Edge auto-launch, Adobe Connect Detector, Cisco Meeting Daemon
- Startup delay removed
- Menu/hover delays reduced to 0ms
- Shutdown timeouts reduced
- Visual effects set to performance mode
- Cortana, Bing Search in Start Menu disabled
- Windows tips, suggestions, lock screen ads disabled
- Widgets and Chat hidden from taskbar
- Microsoft Compatibility Appraiser
- Program Data Updater
- CEIP Consolidator and USB CEIP
- Disk Diagnostic Data Collector
- A System Restore point is created before any changes
- All changes can be reversed through System Restore
- Only well-known safe optimizations are applied
- No critical Windows services are touched
- Digital signature verification is performed on running processes
The script displays a comparison at the end:
RAM : 1.2 GB -> 2.1 GB free (+900 MB)
C: Drive : 26.0 GB -> 28.5 GB free (+2500 MB)
- Windows 11 (also works on Windows 10)
- PowerShell 5.1+
- Administrator privileges
MIT License - see LICENSE