Repository navigation
Description
Checklist
- I have searched for existing issues/discussions and didn't find any similar ones.
Describe the feature or improvement
Add a way to bring back the Windows defaults for the settings Win11Debloat can change, without needing a backup, a restore point or a log from the original run to still exist. The idea is a read-only scan first: for every feature that already has an undo regfile, compare the current registry state with what the undo file would set (a value, or no value at all where the undo file deletes it), and list the features that differ. The user ticks what to put back, and only those undo files are applied. The existing undo files and the restore dialog would do most of the work, so no new database of defaults is needed.
This is not the "Undo button" from #541. That issue was closed because the script already has ways to revert (the wiki page, the registry backup, the restore point). My point is about when those are available: all of them have to still be on the machine on the day someone wants to revert, and in practice they often are not.
Examples
My own case. I ran the script through the one-line launcher a few weeks ago and later wanted to see what it had changed and go back. Nothing was left. As far as I can tell from the code, the 2026.08.24 release kept Logs and Backups in %TEMP%\Win11Debloat. Microsoft documents that %TEMP% is deleted by design by the SilentCleanup task (cleanmgr.exe) once a logon session is over seven days old, and by Storage Sense when it is enabled (https://learn.microsoft.com/troubleshoot/windows-server/shell-experience/temp-folder-with-logon-session-id-deleted). Storage Sense was on here, and the oldest item in my %TEMP% was about three weeks old. I cannot prove that is what removed the files, only that it fits.
The restore point did not help either. Get-ComputerRestorePoint shows a single point, from an unrelated install, with sequence number 70, so older ones were removed. Microsoft documents removal by age (90 days by default, or 72 hours for point-in-time restore) and by disk space, and Checkpoint-Computer cannot create more than one point per 24 hours, so a request from the script can be skipped when another point is recent.
The current release stores user data in %LOCALAPPDATA%\Win11Debloat, which fixes the Storage Sense and SilentCleanup case. A "Reset this PC" with "Keep my files" deletes \Users<name>\AppData\Local according to Microsoft (https://learn.microsoft.com/windows-hardware/manufacture/desktop/how-push-button-reset-features-work), but that reset also returns Windows to defaults on its own. The gap is the period before that, when Windows is still the same install and the artifacts are gone.
The undo regfiles still exist, but a person who no longer remembers which options they ran does not know which ones to apply. A scan against the defaults answers that question from the current state, so it does not depend on any history.
Additional context
Limits I can already see, so they can be weighed:
- A scan only shows that a value differs from the default. It cannot tell whether Win11Debloat, the user, a Windows update or a policy changed it, so the result has to be a list to choose from, never an automatic overwrite.
- Defaults differ by edition and build, and the undo files were written per feature. I have not checked them against a clean install, so I do not know how accurate they are as a baseline.
- Removed apps, scheduled tasks and services are out of scope. Features that have no undo regfile would be skipped.
- Nothing here is implemented. I only read the code on master and the regfiles; I did not run the script. Environment: Windows 11 Pro 26H2, build 26300.9974.
If you think this fits the scope, I'm happy to work on it. A small first step could be a read-only report script that only prints which features differ from their undo state (similar to the language key report in #860), and leave applying changes for a second step. If you would rather keep the current approach, that is fine too; I mainly wanted to describe the case where none of the existing ways were left.
🤖 Generated with Claude Code
Activity
Raphire commentedon Nov 13, 2026
Heya,
While not perfect, you can see all of the tweaks that are applied when you have
Detect applied tweaksticked. In most cases, these undoing these tweaks reverts them to the Windows default. Is there any specific use-case that is not covered by just undoing features like this?Example on my machine:

HetCreep commentedon Nov 14, 2026
Heya,
Thanks, and sorry for the noise: I missed
Detect applied tweaks. I only read the undo regfiles and the restore-from-backup dialog, and I did not open the Tweaks tab, so I described a scan that you already have. I have now readGet-CurrentTweakState.ps1. It does the detection half of what I asked for (it compares the live registry with each feature's apply file), and the undo files then put the values back. That covers my case: someone who no longer remembers what they ran, with no log or backup left on the machine.To answer your question, I don't have a use case that this misses. I have not applied anything from the Tweaks tab on a machine where the script was used a while ago, so I can't say how it behaves there. The only things I can see from the code are two small limits, and I'm not asking for either:
While reading the wizard I also noticed a few wording points that I put in a separate issue (#905), so they don't get lost in this one.
I'll close this one.