Skip to content

About

A PowerShell and batch toolkit for documented, reversible Windows 10/11 debloat and performance tweaks.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

80 Commits

Folders and files

Repository files navigation

⚑ Ultimate Windows Optimizer

Debloat Windows to the metal. β€” a PowerShell + batch toolkit for documented, reversible Windows 10/11 debloat & performance tweaks.

Landing Page Repository Download

Stars Forks License Platform PowerShell Version No Telemetry No Network

πŸ”— Landing page Β Β·Β  πŸ“¦ Repository Β Β·Β  ⬇️ Download ZIP Β Β·Β  🧭 All projects


Tests CI PRs Welcome

Ultimate Windows Optimizer main menu

What this is (and isn't)

This is a set of well-known, individually-documented Windows tweaks (disabling telemetry, adjusting CPU priority separation, GPU scheduling, power plans, visual effects, etc.) wired up with:

  • Real logging to %USERPROFILE%\OptimizationLogs
  • Real backups of every registry value and service state changed, so Undo-All-Changes.ps1 can put your system back exactly as it was
  • Real verification and benchmarking utilities that check actual system state instead of printing canned numbers

This is not a magic performance multiplier. Results depend entirely on your hardware and workload. No specific percentage improvement is promised anywhere in this toolkit β€” use Performance-Monitor.ps1 before and after to measure your own real before/after numbers with Compare-Results.ps1.

Nothing here needs the internet. The toolkit makes no outbound calls, sends no telemetry, and reads no credentials. See Safety notes.


Contents


Preview

These are faithful renders of the toolkit's real console output (no Windows host was used to capture them), shown with representative example values.

Applying the Gaming profile
Applying a profile β€” every tweak is logged as it is set.
Verifying a profile
Verify-System checks real state, it does not assume success.
Performance snapshot
Performance-Monitor saves a real, labeled snapshot.
Main menu
The launcher menu.

Requirements

  • Windows 10 (build 17763+) or Windows 11
  • PowerShell 5.1+ (built in to Windows)
  • Administrator rights
  • Run Compatibility-Check.ps1 first (menu option 9) to confirm your machine meets these

Quick start

  1. Extract the ZIP anywhere.
  2. Right-click scripts\00_Ultimate_Master.bat β†’ Run as administrator.
  3. Choose option 9 (Compatibility Check) first.
  4. Choose option S to create a System Restore point (recommended before your first run).
  5. Choose option M (Performance Snapshot) and label it Baseline.
  6. Pick a profile (1-8).
  7. Optionally take another snapshot (M, label it e.g. AfterGaming) and run R (Compare Two Snapshots) to see real before/after numbers.
  8. If you ever want to revert everything this toolkit changed, choose U (Undo All Tracked Changes).

Profiles β€” what each one actually does differently

Profile Key tweaks Notably does NOT do
Daily Home Disable telemetry, disable Start Menu ads, disable background apps, balanced visual effects, Balanced power plan No GPU/priority/memory tweaks
Gaming GPU hardware scheduling, foreground priority boost, network throttling removed, Game DVR off, High Performance power plan Not recommended for battery-powered laptops
Office Background-app + Xbox-service removal, explicit balanced priority separation No GPU scheduling or priority boost
Laptop USB selective suspend, disables HAGS (saves power on hybrid-GPU laptops), Balanced power plan Never disables hibernation or memory paging
Extreme Everything in Gaming + hibernation removed; DisablePagingExecutive only if RAM β‰₯ 16GB; Superfetch disabled only if system drive is confirmed SSD Desktop only
Godlike Everything in Extreme + Windows Search indexing disabled + Xbox services disabled. Requires typing CONFIRM because it trades away Start-menu/file search speed Desktop enthusiast machines only
Server Disables Search indexing and Xbox services, removes hibernation, favors background-service CPU priority over foreground apps (opposite of Gaming) No GPU/gaming tweaks
Streaming Gaming-profile tweaks + SystemResponsiveness lowered so capture/encoding software isn't CPU-starved by the foreground game -
Debloat Telemetry service + policy + CEIP scheduled tasks off, consumer-feature and lock-screen ads off, Copilot and Recall off, Cortana off, Bing/web suggestions in Start off, Widgets feed off, activity history + advertising ID + feedback prompts + app-launch tracking + sync-provider notifications off, Delivery Optimization P2P off Uninstalls nothing - no Appx or app removal, unlike most debloat scripts

Full tweak definitions live in scripts/UWO.psm1 under Invoke-Tweak and the profile catalog, which is the single source of truth for what each profile does: the profile scripts read their tweak list from it via Get-ProfileTweak instead of keeping their own copy, so the table above, Verify-System.ps1, and what actually runs can no longer drift apart. Read them before running anything you don't understand.

For the Extreme and Godlike profiles, DisablePagingExecutive and DisableSysMain are listed in the catalog so that Verify-System.ps1 can verify them, but the profile scripts strip them from the list they run and re-append them at runtime, gated on RAM >= 16GB and SSD detection respectively β€” so if your hardware doesn't meet the gate, those tweaks are skipped during the run (and Verify-System.ps1 will then correctly report them as "Not Applied").


Utilities

  • Compatibility-Check.ps1 β€” real PASS/FAIL checks (admin rights, OS build, PowerShell version, RAM, disk space, System Restore availability)
  • Hardware-Detection.ps1 β€” real CPU/GPU/RAM/disk/motherboard info via CIM
  • Performance-Monitor.ps1 β€” saves a labeled, real snapshot (CPU load, RAM, disk free, top processes)
  • Compare-Results.ps1 β€” diffs two real snapshots you choose; refuses to run with fewer than 2 snapshots
  • Cleanup-System.ps1 β€” clears temp/cache/Recycle Bin and reports the actual GB freed (measured, not estimated)
  • Advanced-Modules.ps1 β€” runs 8 independent tweaks and reports a real success/fail count
  • Verify-System.ps1 β€” checks current registry/service state against what a chosen profile should have applied
  • System-Rollback.ps1 β€” creates a real Windows System Restore point, or opens System Restore
  • Undo-All-Changes.ps1 β€” reads every backup file this toolkit has written and restores every tracked registry value, service, and hibernation setting to its original state
  • Cleanup-Backups.ps1 (menu P) β€” prunes old backup JSON files that would otherwise accumulate forever. Conservative by design: a file is deleted only if it is both outside the newest 20 files and older than 30 days, and backups that have not been undone yet are never touched unless you pass -IncludePending. Use -WhatIf to preview, -KeepCount/-MaxAgeDays to change the thresholds; everything pruned is logged

What's new in v6.5.0

The Debloat profile grew from 10 tweaks to 16, borrowing the settings Sophia Script and winutil apply as policy rather than the consumer toggles this toolkit already had.

  • Consumer-feature ads and lock-screen "spotlight" ads off
  • Telemetry policy (AllowTelemetry) alongside the existing DiagTrack service change
  • Cortana off
  • Delivery Optimization peer-to-peer upload off (uploading updates to strangers)
  • File Explorer sync-provider notifications off

Every one is a single documented registry value, so it is backed up and restored exactly like the rest β€” the catalogue is now 37 tweaks across 9 profiles, and the catalog test still enforces that each one is both implemented and verifiable.

What's new in v6.3.0

A feature release that closes the biggest gap against other Windows debloaters while keeping this toolkit's one hard promise: everything is reversible.

  • Scheduled tasks are now first-class. Telemetry and CEIP jobs live in Task Scheduler, not in a service or a registry value, so no previous version could touch them. New Set-ScheduledTaskStateSafe / Restore-ScheduledTaskBackupRecord disable a task, record its previous state, and put it back on undo - a new ScheduledTask backup record type alongside Registry, Service, Hibernation and PowerPlan.
  • New Debloat profile (launcher option B): disables the ten canonical telemetry tasks, plus Copilot, Recall, Bing/web search suggestions in Start, the Widgets feed, activity history, the advertising ID, feedback prompts and app-launch tracking.
  • No app removal, by design. The well-known debloaters delete Appx packages and warn that "not every feature removed can be easily restored". This one changes state that can be restored, and says so.

What's new in v6.2.0

A correctness-and-polish release driven by an independent code audit. The undo guarantee now holds for services, power plans and hibernation, not just registry values.

  • Undo now restores services and power plans after a re-run. Previously, re-running a profile recorded the already-tweaked service start mode / power plan as the "original", and those record types were not de-duplicated β€” so "Undo All" could leave the machine on the tweaked state. Set-ServiceStateSafe and the PowerPlan* tweaks are now idempotent, and Select-BackupRecordsToRestore de-duplicates services (per service), power plans and hibernation as well as registry values, keeping the earliest recorded original.
  • Verify-System.ps1 now reports DisableNetworkThrottling correctly. The value 0xffffffff reads back as -1; the verifier now uses the same normalising comparison as the write path (Test-RegistryValueMatch).
  • Service backups are written only after the change succeeds, matching the registry path.
  • Hibernation is state-aware. If hibernation is already off, nothing is changed and nothing is recorded; undo restores the state that was actually captured.
  • EnableUSBSelectiveSuspend now does what its name says. The old version wrote CsEnabled (the Connected/Modern Standby flag). It now sets the real per-scheme USB selective-suspend setting for the active power plan, and is verified against the active scheme.
  • Importing the module no longer creates folders. Log/backup/snapshot directories are created lazily on first write, so a read-only utility or a -WhatIf preview leaves no trace.
  • VisualEffectsBalanced now writes 0 ("Let Windows choose" β€” the actual balanced default) instead of 3 ("Custom").
  • Compare-Results.ps1 validates your snapshot selection instead of silently comparing blanks.
  • Launcher renamed to 00_Ultimate_Master.bat (no version in the filename).

See CHANGELOG.md for the full history.


Permanent / irreversible debloat (cannot be undone)

Everything else in this toolkit is reversible by design. This is the one part that is not, and it is kept deliberately separate.

scripts\Permanent-Debloat.ps1 (launcher option X) runs debloat actions that cannot be undone by this toolkit:

Operation What it does Why it cannot be undone
Remove consumer Appx packages Uninstalls a fixed list of built-in apps, installed and provisioned Removed packages must be reinstalled from the Microsoft Store
Uninstall the OneDrive client Runs the OneDrive uninstaller OneDrive must be reinstalled from Microsoft
Compact the component store DISM /StartComponentCleanup /ResetBase Updates already installed can no longer be uninstalled

How it is kept honest:

  • No backup record is written. These are not tweaks - they never enter the catalog and never appear in any profile.
  • Undo-All-Changes.ps1 does not touch them, and prints a warning at the end telling you how many permanent changes are recorded.
  • Typing I UNDERSTAND is required before anything runs.
  • Every action is appended to an append-only ledger at %USERPROFILE%\OptimizationLogs\PermanentChanges.log, so you can see what was done even though you cannot put it back.
  • Cleanup-System.ps1 (menu C) is recorded the same way. Deleting temp files and emptying the Recycle Bin cannot be undone, so it warns first and writes every target it clears to the same ledger.
  • CI enforces that no irreversible operation is ever part of a normal profile, and that the cleanup script keeps writing to the ledger.

Safety notes

  • The previous state of every registry value, Windows service, hibernation setting, and power plan is captured before the change and written to a per-run JSON backup file as soon as the change actually succeeds. A failed change writes no backup record, so Undo-All-Changes.ps1 can never try to "restore" something that was never applied. (Services originally in Boot/System start modes β€” kernel drivers β€” cannot be restored via Set-Service and are logged with a clear warning instead.)
  • Re-running a profile is a no-op for anything that already matches. Nothing is written and no backup record is added, so a second run cannot record an already-tweaked value as your "original" one. As a second line of defence, undo de-duplicates records across all backup files by their logical target and always restores the earliest recorded original.
  • Registry keys created by the toolkit are removed again on undo β€” but only when the value did not exist beforehand, the key was created by this toolkit, and the key is still empty. A key that something else has since written to is left in place.
  • Undo-All-Changes.ps1 supports -WhatIf to preview what it would restore without changing anything, and tolerates corrupted/empty backup files without aborting the whole undo run.
  • Power plans are restored locale-independently: the plan GUID is extracted and stored when it is captured, rather than re-parsed from localized powercfg output at undo time.
  • Backup files are never deleted automatically. Pruning only happens when you run Cleanup-Backups.ps1 (menu P), and by default it leaves every backup that has not been undone yet alone.
  • The Godlike profile requires typed confirmation because it disables Windows Search indexing, which has a real usability cost.
  • The optional dependency downloader (menu D) only opens official vendor download pages β€” it does not silently run anything, and does not claim to verify file signatures for you.
  • No network, no telemetry, no credential access, no persistence. The toolkit contains no downloader, no Invoke-Expression, no scheduled tasks and no security-product changes.

Development

The shared engine is the UWO module (scripts/UWO.psm1 + scripts/UWO.psd1). Scripts consume it with Import-Module (Join-Path $PSScriptRoot 'UWO.psd1'); scripts/Common-Functions.ps1 remains only as a shim that imports the module and re-publishes the old $Global:* catalog variables, so anything that still dot-sources it keeps working.

Tests live in tests/ and run with Pester 5:

Install-Module Pester -RequiredVersion 5.7.1 -Scope CurrentUser
Invoke-Pester -Path ./tests

The registry tests only ever touch HKCU:\Software\UWO-Test and are skipped on non-Windows hosts; logs/backups are redirected to a temporary directory via the UWO_LOG_ROOT environment variable, so running the suite never touches %USERPROFILE%\OptimizationLogs. Lint with Invoke-ScriptAnalyzer -Path . -Recurse -Settings ./PSScriptAnalyzerSettings.psd1; both run automatically on windows-latest under Windows PowerShell 5.1 in CI (see .github/workflows/ci.yml).


Support

UPI (India) drsohilboi@ybl β€” payee Dr Sohil Momin, open amount, or scan the QR
GitHub Sponsors github.com/sponsors/drsamonline
Ko-fi ko-fi.com/matneo
PayPal paypal.me/drsohilmomin
My books Amazon author store
More apps drsamonline.github.io
Email sohilmomin2000@gmail.com

License

MIT. See LICENSE. The copyright notice β€” Β© 2026 Dr. Sohil Momin β€” must be retained in every copy or substantial portion of the software: that notice is the licence's only condition, and it is why MIT was chosen over a public-domain waiver.

About

A PowerShell and batch toolkit for documented, reversible Windows 10/11 debloat and performance tweaks.

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages