Tool · Runs in your browser
Undo builder
Tell it what Win11Debloat changed, and it writes a PowerShell script that reverts those tweaks with the project's own undo files, plus commands to reinstall the apps you want back. The easiest undo is still the wizard: untick the tweak and apply. This tool is for when you cannot or do not want to run Win11Debloat again.
How to run the script
Open PowerShell as administrator
Right-click Start, choose Terminal (Admin) or Windows PowerShell (Admin), and accept the prompt.
Paste the script and press Enter
If you downloaded the
.ps1file instead, runpowershell -ExecutionPolicy Bypass -File .\Undo-Win11Debloat.ps1from the folder you saved it to.Sign out or restart
Explorer restarts by itself. Some settings, such as policies and services, only change back after a sign-out or restart.
What the script does
- Downloads release 2026.08.24 straight from Raphire's GitHub. The version is fixed, so the undo files match the ones that made the changes.
- Runs
reg importon theRegfiles\Undofile of each tweak you selected. That is exactly what Win11Debloat does when you untick a tweak in its wizard. - If you selected
-DisableTelemetry, turns its 8 scheduled tasks back on, as the wizard's undo does. - Reinstalls the apps you ticked from the Microsoft Store with
winget. - Deletes the download and restarts Explorer. Nothing is sent anywhere: the script is built in your browser, and you can read every line before you run it.
What it cannot undo
- Your own earlier settings. Undo files set Windows' defaults. To get back exactly what you had, restore Win11Debloat's registry backup instead: how.
- Drop-down settings such as taskbar alignment have no undo file. Pick their (Default) option in the wizard.
- Tweaks that are PowerShell code, such as Widgets and Store search suggestions, are only undone by the wizard. The script lists them.
- The Microsoft Store app cannot be reinstalled with winget. See the options.
Questions
Where do I find LastUsedSettings.json?
In the Config folder of Win11Debloat. With the one-liner it is %TEMP%\Win11Debloat\Config: paste that into the File Explorer address bar. With a downloaded copy, it is in the Config folder of the extracted release. It only reflects your most recent run.
Is it safe to run a script from a website?
Read it first: it is short, and every line is shown above before you copy it. It only downloads from github.com, runs reg import on the project's own undo files, and installs apps with winget. You can also skip the script and double-click the same undo files yourself.
I ran Win11Debloat several times. What should I paste?
The file only has your last run. Tick the tweaks from earlier runs by hand, or open Win11Debloat and use the wizard, which detects every applied tweak no matter when it was applied.
Keep going
Something wrong or out of date? Email hello@win11debloat.dev and we will fix it.