Table of Contents
Unwanted apps and AI features may slow down your PC, and removing them one by one can take time.
But what if you could automate some of that work instead of going through every setting and app manually?
That’s where Windows debloat scripts come in.
In my previous guide, I showed you how to remove unwanted AI using simple methods through Windows Settings, without running scripts.
This time, I’ll show you how to debloat Windows 11 step-by-step using popular community tools, which tweaks are worth making, and what you should leave alone to keep your system stable.
What Are Windows 11 Debloat Scripts?
Windows 11 debloat scripts are small programs designed to automate the process of removing unwanted apps and AI features.
Most debloat scripts use PowerShell, a simple built-in tool that lets you run commands to modify certain aspects of the operating system without using the graphical user interface.
Depending on the script, you can automatically disable or remove them, change privacy settings, or apply other tweaks.
However, scripts are different; not every one of them does the same thing. Some focus on debloating Windows 11, while others offer more advanced options.
The script that I will feature here can even let you install some useful utilities and bring back the legacy look of Windows 10, like the “Right-click legacy layout”.

Are Windows 11 Debloat Scripts Safe?
Unfortunately, using scripts straight from the internet, specifically GitHub, may be risky, and before you run one, you should research online, understand what it changes, and read the script’s description and warnings from the official GitHub repository.
Some untrusted scripts can be harmful; they may remove the wrong components or disable important services, which can cause problems with Windows or features it relies on.
Some may break Windows Update, causing it to introduce problems you’ve never seen before. Others may mess with Microsoft Edge, which will cause problems with certain web links you may need to open. In this case, Windows will think that the default link opener is Edge even if you have other browsers installed.
Fortunately, there is a way to roll back certain system changes if something goes wrong. Some tools, like Chris Titus Tech’s WinUtil, which I will feature in this article, let you undo many of the tweaks you apply. Also, this utility can help you create a restore point to be on the safe side.
What to Do Before Running a Debloat Script?
Before running a script, you should create a restore point in case anything goes off plan. You can either create it manually or let the script help you create one.
You should also back up your important files; a debloating script wouldn’t normally delete them, but having a backup is still an effective precaution before modifying anything in your Windows copy.
Best Windows 11 Debloat Scripts and Tools
There are various community tools you can use to debloat Windows 11. However, in this guide I’ll feature two distinctive utilities.
The first one is “WinUtil” by “ChrisTitusTech,” a broader Windows utility that allows you to tweak several aspects of it, apply fixes, and batch install essential software.
The other is “RemoveWindowsAI” by “zoicware,” a script focusing on AI-related components. It helps you improve your user experience, protect your privacy, and enhance security by removing AI features like Copilot and Recall.
Which one should I use?
If your main goal is to remove unwanted AI features from your computer, use RemoveWindowsAI by Zoicware. On the other hand, if you want a tool that offers a collection of tweaks, including removing unwanted apps, installing multiple apps at once, and customizing Windows through a graphical interface, use WinUtil by Chris Titus Tech.
How to Debloat Windows 11 Using WinUtil
Now that you know what WinUtil is, let’s see how you can use it to debloat Windows 11.
Step 1: Open PowerShell as Administrator
First, you need to open PowerShell with administrator privileges to use WinUtil as per the documentation. It makes various changes to your system that require permission.
To do that, right-click the Windows Start button and select Terminal (Admin).

Step 2: Run WinUtil
Copy the following command and paste it into PowerShell:
irm "https://christitus.com/win" | iex
Press Enter and wait for WinUtil to open.
This command lets you download and run the stable version of WinUtil from its official source. You don’t need to install it like any other software.
The tool will launch, and you will see a window showing a lot of programs you can install under the “Install” tab.

I won’t cover that here because I’m interested in debloating Windows.
Navigate to the “Tweaks” tab, which is essentially where you will spend most of your time selecting tweaks you want to apply to debloat Windows.

I’ll show you the ones I recommend, along with several optional and risky ones to use with caution, since they could cause system problems.
Recommended tweaks
Restore Point – Create
It’s one of the most important options in WinUtil. It automates creating a restore point in case something breaks.
ConsumerFeatures – Disable
This tweak helps you against the Microsoft Store, which tries to promote or suggest certain apps by reducing them significantly.
Disk Cleanup – Run
This option runs the built-in disk cleanup utility to remove certain unnecessary files, like old Windows updates, and free up storage space on your PC. However, the amount you’ll free up depends on which files can be removed.
Microsoft Store Recommended Search Results – Disable
If you prefer searching for apps without seeing many recommendations shoved in your face, this tweak may help Microsoft Store feel less cluttered.
Telemetry – Disable
Disabling telemetry can help reduce the diagnostic data Windows sends to Microsoft. Keep in mind that it won’t stop all data from being sent because some data is still required by Windows.
Temporary Files – Remove
Helps you remove temporary files from your PC to free up storage space.
Widgets – Remove
Helps you remove Windows Widgets to declutter the Windows taskbar. Widgets display things like news, weather, sports, and other information on the far left of your taskbar.
Brave Browser – Debloat
Helps you debloat Brave browser by disabling several Brave features, including Rewards, the crypto wallet, VPN, Leo AI, Brave News, and Brave Talk. It also disables certain telemetry and data collection features.
Microsoft Edge – Debloat
Disables several Microsoft Edge features and annoyances, including shopping suggestions, Microsoft Rewards promotions, pop-ups, and telemetry. Collections and the Edge sidebar widget as well.
Microsoft OneDrive – Remove
If you don’t use OneDrive, you might consider removing it with this tweak. It removes Microsoft OneDrive entirely, along with some of its leftover files from your PC. It also disables a Windows synchronization service used by it.
Windows AI – Disable And Remove
Debloats Windows 11 by removing certain AI-related packages and apps, disabling Recall and AI-related services, and turning off AI features in Notepad.
Optional tweaks
Activity History – Disable
If you’re concerned about privacy, checking this tweak stops Windows from uploading your activity, such as your recent docs and your run history.
Delivery Optimization – Disable
This disables Windows Delivery Optimization, which can use other PCs on your local network or the internet to share parts of Windows updates and apps.
Hibernation – Disable
Hibernation saves your current session to disk so you can resume where you left off. Disabling it can free up storage space, but your PC may start up more slowly; it may also disable Fast Startup.
Location Tracking – Disable
Location tracking allows Windows and certain apps to use your device’s location. Disabling it can enhance your privacy, but some apps and features may no longer be able to determine your location automatically.
End Task With Right Click – Enable
With this tweak, you can end an unresponsive app directly from its taskbar icon by right-clicking it and selecting “End task.” It’s a handy shortcut that saves you from opening Task Manager when an app freezes.
File Explorer Automatic Folder Discovery – Disable
File Explorer Automatic Folder Discovery is a Windows feature that tries to figure out what kind of files a folder contains and adjusts its layout accordingly. Disabling it helps keep folder views more consistent.
Background Apps – Disable
Prevents Microsoft Store apps from running in the background and helps reduce unnecessary background activity.
Right-Click Menu Previous Layout – Enable
Restores the nostalgic, practical right-click context menu of Windows 10 in Windows 11. You won’t have to click “Show more options” anymore.
Prevent Device Companion Apps
This tweak prevents Windows from downloading device metadata from the internet, which can trigger additional software installations or show promotional offers when you connect certain devices, such as a monitor.
It can help reduce bloatware, but changing this setting may affect how Windows retrieves information about connected devices.
Services – Set to Manual
This option lets Windows start programs only when needed instead of running them automatically at startup. This may reduce unnecessary background activity.
Risky tweaks
Microsoft Edge – Remove
Uninstalls Microsoft Edge from Windows by tricking it with a dummy MicrosoftEdge.exe file. However, removing it at the system level can cause compatibility issues with Windows features or other apps that rely on it. If you only want to remove Edge’s pop-ups, recommendations, and other annoying features, use the debloat option instead.

Once you choose the tweaks you want to apply. Click on “Run Tweaks” and let the utility execute PowerShell commands to debloat Windows 11.

The process will take several minutes depending on how many tweaks you chose.
How to Undo WinUtil Tweaks
If you experience problems after debloating Windows 11, you may want to undo some of the changes you made.
The good news is that you can either reverse the tweaks you applied via WinUtil, use the restore point you created, or reinstall the programs manually.
Reverse the Tweaks You Applied

If you aren’t happy with how Windows 11 became after the debloating process, you can undo the tweaks with the “Undo Selected Tweaks” option. Select each tweak you want to redo by checking its box, then click it.
Use The Restore Point You Created
I didn’t label it as the “most important options in WinUtil” out of nowhere. It acts as a second layer of protection if the “Undo Selected Tweaks” option didn’t work.
Some tweaks modify registry settings, which is an easy thing to redo. Other changes, such as the removal of certain apps or changes to Windows services, may be difficult to undo.
Reinstall Apps You Removed
If the tweaks removed an app you are actively using by accident, you can manually reinstall it via the Microsoft Store or the World Wide Web.
How to Remove AI Using RemoveWindowsAI
If removing AI is your only objective. you can use a tool like RemoveWindowsAI instead of WinUtil. It forces the removal of Copilot, Recall, and many more.
Step 1: Open PowerShell as Administrator
Just like I did with the previous debloating tool. Open PowerShell with administrator privileges to use RemoveWindowsAI
Step 2: Run RemoveWindowsAI
Copy the following command and paste it into PowerShell:
& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/zoicware/RemoveWindowsAI/main/RemoveWindowsAi.ps1")))
Press Enter and wait for it. It won’t take long.

This command lets you run RemoveWindowsAI. You don’t need to install it as software.
Recommended Options
Disable Registry Keys
Disables certain AI features, including Copilot and Recall, and turns off some AI features in Windows Search, Microsoft Edge, and Paint.
Disable Copilot policies
Changes Windows settings to turn off certain Copilot features that are built into the operating system.
Remove AI Appx Packages
Removes certain AI-related apps and components from Windows, including Copilot and other built-in AI components.
Remove Recall Optional Feature
Removes the Windows Recall feature and its associated files from your system.
Hide AI Components
Hides the AI components page in Windows Settings, preventing you from accessing it there. This doesn’t necessarily remove the AI features themselves.
Disable Notepad Rewrite
Turns off the AI Rewrite feature in Windows Notepad, which can rewrite or rephrase your text like Grammarly.
Remove Windows AI Tasks
Removes scheduled tasks associated with Windows AI to prevent those specific tasks from running.
Update Cleanup Check
Creates a background task that checks for Windows updates when you sign in and removes certain AI components that may have been added by an update.
Disable Defender AI
Disables the Windows Defender AI Platform Host process and its associated features.
Risky Options
Prevent Package Reinstall
Helps prevent Windows Update from reinstalling certain AI components after they’ve been removed. However, this modification is risky and could break Windows Update.
Remove AI CBS Packages
Removes additional AI components that Windows manages as part of its system installation. Also, this option is risky; it may break Windows Update. Use it at your own risk.
Remove AI Files
Deletes certain AI-related files from Windows, including files associated with built-in apps and Copilot installers.

Once you choose the AI features you want to remove, you must check the “Backup Mode” in order to use the “Revert Mode” without issues. Finally, click on “Apply” and let the utility execute PowerShell commands to AI-debloat Windows 11.

The process will take several minutes depending on the features selected.
How to Undo AI Removal in Windows 11
If you experience problems after removing Windows 11 AI features/apps, you may need to undo some of the changes you made.
The good news is that you can either restore the disabled features via RemoveWindowsAI or use the restore point you created.

RemoveWindowsAI Revert Mode
The revert mode will bring back the AI features and settings to their original state. You must’ve had the backup mode turned on before applying the changes for it to work properly.
Use The Restore Point
If the revert mode didn’t work for you, you can use the restore point you created to undo the changes made by the tool.
Final Thoughts
Debloating Windows 11 with scripts can save you time by removing unwanted apps and AI features, but you should be careful about which changes you make.
If you’re not comfortable running scripts, check out my guide to removing unwanted AI from Windows 11 using simple methods through Settings.
Whichever method you choose, create a restore point first and only remove features you don’t need.
Frequently Asked Questions
Are Windows 11 debloat scripts safe?
They can be safe if you use a trusted tool and understand what it changes. However, some tweaks can cause problems with Windows or your apps.
Does debloating Windows 11 improve performance?
It can help reduce background activity and free up storage space. However, the performance improvement depends on your PC and the changes you make.
Can I undo Windows 11 debloat tweaks?
Some tweaks can be reversed, but not all changes are easy to undo. Create a restore point before running a debloat script.
Can I remove AI from Windows 11 without using scripts?
Yes. You can disable or remove some AI features through Windows Settings. Read my guide to removing unwanted AI from Windows 11 to learn how.
Will debloating Windows 11 break Windows Update?
Some tweaks may interfere with updates or prevent certain features from working correctly. Avoid changing system components unless you understand the risks.
Which Windows 11 debloat tool should I use?
WinUtil is useful if you want to customize several parts of Windows. RemoveWindowsAI is more focused on removing AI-related features.
Should I apply every debloat tweak?
No. Only apply tweaks that match your needs. Removing features you use can cause unnecessary problems.