Skip to content

amitmaity/windows11optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Win11 Optimizer

A PowerShell-based Windows 11 debloating and optimization tool with a modern WPF GUI. Disable telemetry, remove bloatware, turn off Copilot, optimize services, and tweak the UI -- all with full backup and revert capability.

Features

  • 65+ tweaks organized into 7 categories
  • Dark-themed WPF GUI with category sidebar and tweak cards
  • Automatic backup before every change (JSON snapshots)
  • One-click revert to restore any previous state
  • System Restore Point created automatically before applying
  • No external dependencies -- pure PowerShell + .NET WPF

Requirements

  • Windows 11
  • PowerShell 5.1+ (built into Windows)
  • Administrator privileges

Quick Start

  1. Right-click Win11Optimizer.ps1 and select Run with PowerShell
  2. Accept the UAC prompt (admin elevation is required)
  3. Browse categories in the left sidebar
  4. Check the tweaks you want to apply across any categories you want
  5. Click Create Backup & Apply

If PowerShell script execution is blocked, open PowerShell as Admin and run:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
.\Win11Optimizer.ps1

Categories & Tweaks

Telemetry & Data Collection (10 tweaks)

Tweak Description
Disable Telemetry Stops sending diagnostic/usage data to Microsoft
Limit Diagnostic Data Restricts diagnostic log collection
Disable Feedback Notifications Prevents feedback prompts
Disable App Launch Tracking Stops tracking launched apps
Disable Activity History Stops collecting activity history
Disable Tailored Experiences Prevents personalized content from diagnostic data
Disable Advertising ID Blocks targeted advertising identifier
Disable Error Reporting Stops crash data reporting
Disable Customer Experience Program Opts out of CEIP
Disable DiagTrack Autologger Disables diagnostic tracing logger

Privacy (10 tweaks)

Tweak Description
Disable Camera Access Blocks system-wide camera access
Disable Microphone Access Blocks system-wide microphone access
Disable Location Access Blocks location services
Disable Contacts Access Blocks app access to contacts
Disable Calendar Access Blocks app access to calendar
Disable Call History Access Blocks call history access
Disable Email Access Blocks app access to email
Disable Notifications Access Blocks notification listener access
Disable Account Info Access Blocks access to account name/picture
Disable Background Apps Prevents apps from running in background

Copilot & AI (4 tweaks)

Tweak Description
Disable Windows Copilot Completely disables the Copilot AI assistant
Disable Windows Recall Disables the AI-powered Recall/Snapshots feature
Disable Bing Search in Start Removes web search from Start Menu
Disable AI Start Suggestions Removes cloud-optimized AI content suggestions

Bloatware Removal (21 apps)

Clipchamp, News, Weather, Xbox App, Xbox Bar, Xbox Identity, Xbox Speech, Solitaire, People, Maps, Films & TV, Get Help, Tips, Feedback Hub, Teams Personal, Phone Link, Microsoft 365, Power Automate, Groove Music, Sticky Notes, To Do

Services (12 services)

Service Description
DiagTrack Telemetry data collection
dmwappushservice Device management push routing
Xbox Services (4) Auth, Game Save, Accessories, Networking
Geolocation Device location monitoring
Fax Fax send/receive
Print Spooler* Print job management
SysMain* Superfetch/preloading
Maps Broker Downloaded maps data
Retail Demo Retail demo mode

*Not recommended by default -- only disable if you don't use these features.

UI & Taskbar (8 tweaks)

Tweak Description
Disable Widgets Removes Widgets panel and taskbar button
Disable Search Highlights Removes trending search suggestions
Disable Chat Icon Removes Teams Chat from taskbar
Restore Classic Context Menu Brings back the full Windows 10 right-click menu
Disable Snap Assist Suggestions Disables snap layout suggestions
Disable Tips & Suggestions Stops tip/trick notifications
Hide Start Menu Recommended Hides the Recommended section
Hide Task View Button Removes Task View from taskbar

Performance (8 tweaks)

Tweak Description
Optimize Visual Effects Best performance visual settings
High Performance Power Plan Switches to high performance power plan
Disable Game Bar Disables Xbox Game Bar overlay
Disable Game Mode Disables Windows Game Mode
Disable Startup Delay Removes artificial startup app delay
Disable Hibernation Frees disk space from hiberfil.sys
Clean Temporary Files Removes temp/prefetch files (not reversible)
Disable Mouse Acceleration Sets raw mouse input

Backup & Revert

Every time you click Create Backup & Apply, the tool:

  1. Snapshots the current state of all selected reversible settings (registry values, service startup types, installed apps, active power plan, hibernation state) into a timestamped JSON file in the backups/ folder
  2. Attempts to create a Windows System Restore Point
  3. Applies the selected tweaks

To revert changes, click Revert to Default and select a backup from the list.

Backups are stored as human-readable JSON files in the backups/ directory.

Clean Temporary Files is intentionally one-way and is not restored by backups.

Project Structure

Win11Optimizer.ps1          Main entry point (admin check, GUI launch, event handlers)
GUI/
  MainWindow.xaml            WPF layout with dark theme
Modules/
  TweakRegistry.psm1         Central registry of all tweaks (data-driven)
  Telemetry.psm1             Telemetry & data collection functions
  Privacy.psm1               App permission toggle functions
  CopilotAI.psm1             Copilot, Recall, AI feature functions
  Bloatware.psm1             AppX package removal/restore
  Services.psm1              Windows service management
  UITweaks.psm1              Taskbar, widgets, context menu functions
  Performance.psm1           Visual effects, power plan, cleanup
  BackupManager.psm1         Backup/restore engine
backups/                     Auto-created backup storage

License

MIT

About

Debloat and Optimize Windows 11

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors