@Chenzeze777: Windows 要慌了 有人写了一个开源 PowerShell 脚本,51 K+ stars,把 Windows 自带的所有垃圾——预装应用、广告追踪、Copilot、Recall、Bing 搜索——一条命令全清干净 微软往你电脑里塞 C…
摘要
Win11Debloat 是一个开源的 PowerShell 脚本,可一键移除 Windows 11 的预装应用、广告追踪、Copilot、Recall 等,恢复系统纯净度。
查看缓存全文
缓存时间: 2026/07/15 19:59
Windows 要慌了
有人写了一个开源 PowerShell 脚本,51 K+ stars,把 Windows 自带的所有垃圾——预装应用、广告追踪、Copilot、Recall、Bing 搜索——一条命令全清干净
微软往你电脑里塞 Candy Crush、塞 OneDrive 弹窗、塞 Bing 网页搜索、塞 Copilot 侧边栏、塞 Xbox、塞定向广告。Win11 Debloat 一条远程命令全干掉了:
· 一键卸载所有预装应用和推广软件,干净 · 彻底禁用遥测追踪、诊断数据、广告 ID,干净 · 移除 Copilot、Recall、Click to Do 等 AI 监控功能,干净 · 禁用 Bing 网页搜索和 Edge 的 AI 功能,干净 · 恢复 Windows 10 经典右键菜单,不折腾 · 启用 Windows Sandbox 和 WSL,不花钱 · 支持命令行参数批量部署,导出配置跨设备同步 · MIT 开源,不收费不捆绑不追踪
说白了,微软把 Windows 当成广告牌和遥测收割机的时候,Win11 Debloat 反着来——把你的电脑真正还给你,不收一分钱不留一行隐私数据不弹一个广告
https://github.com/Raphire/Win11Debloat…
Raphire/Win11Debloat
Source: https://github.com/Raphire/Win11Debloat
Win11Debloat
Win11Debloat is a lightweight, easy to use PowerShell script that allows you to quickly declutter and customize your Windows experience, no installation required! You can use it to remove pre-installed apps, disable telemetry, remove intrusive interface elements and much more. No need to painstakingly go through all the settings yourself or remove apps one by one. Win11Debloat makes the process quick and easy!
The script also includes many features that system administrators and power users will enjoy. Such as a powerful command-line interface, support for Windows Audit mode and the ability to make changes to other Windows users. You can also easily export & import your preferred settings, allowing you to quickly apply the same settings on all your systems. Please refer to our wiki for more details.

Did this script help you? Please consider buying me a cup of coffee to support my work
Usage
Great care went into making sure this script does not unintentionally break any OS functionality, but use at your own risk! If you run into any issues, please report them here.
Quick method
Download & run the script automatically via PowerShell.
- Open PowerShell or Terminal.
- Copy and paste the command below into PowerShell:
& ([scriptblock]::Create((irm "https://debloat.raphi.re/")))
- Wait for the script to automatically download and launch Win11Debloat.
- Carefully read through and follow the on-screen instructions.
This method supports command-line parameters to customize the behaviour of the script. Please click here for more information.
Traditional method
Manually download & run the script.
- Download the latest version of the script, and extract the .ZIP file to your desired location.
- Navigate to the Win11Debloat folder
- Double click the
Run.batfile to start the script. NOTE: If the console window immediately closes and nothing happens, try the advanced method below. - Accept the Windows UAC prompt to run the script as administrator, this is required for the script to function.
- Carefully read through and follow the on-screen instructions.
Advanced method
Manually download the script & run the script via PowerShell. Recommended for advanced users.
- Download the latest version of the script, and extract the .ZIP file to your desired location.
- Open PowerShell or Terminal as an administrator.
- Temporarily enable PowerShell execution by entering the following command:
Set-ExecutionPolicy Unrestricted -Scope Process -Force
- In PowerShell, navigate to the directory where the files were extracted. Example:
cd c:\Win11Debloat - Now run the script by entering the following command:
.\Win11Debloat.ps1
- Carefully read through and follow the on-screen instructions.
This method supports command-line parameters to customize the behaviour of the script. Please click here for more information.
Features
Below is an overview of the key features and functionality offered by Win11Debloat. You can visit the the wiki for more details.
All of the changes made by Win11Debloat can easily be reverted and almost all of the apps can be reinstalled through the Microsoft Store. You can visit the wiki for more information on reverting changes.
App Removal
- Remove a wide variety of preinstalled apps. Click here for more info.
Privacy & Suggested Content
- Disable telemetry, diagnostic data, activity history, app-launch tracking & targeted ads.
- Disable tips, tricks, suggestions & ads across Windows, the lock screen and Microsoft Edge.
- Disable Windows location services, app location access and Find My Device location tracking.
- Hide Microsoft 365 ads on the Settings ‘Home’ page, or hide the ‘Home’ page entirely.
AI Features
- Disable & remove Microsoft Copilot, Windows Recall and Click to Do.
- Prevent AI service (WSAIFabricSvc) from starting automatically.
- Disable AI Features in Edge, Paint and Notepad.
System
- Disable the Drag Tray for sharing & moving files.
- Restore the old Windows 10 style context menu.
- Turn off Enhance Pointer Precision (mouse acceleration).
- Disable the Sticky Keys keyboard shortcut.
- Disable Storage Sense automatic disk cleanup.
- Disable fast start-up to ensure a full shutdown.
- Disable BitLocker automatic device encryption.
- Disable network connectivity during Modern Standby to reduce battery drain.
Windows Update
- Prevent Windows from getting updates as soon as they’re available.
- Prevent automatic restarts after updates while signed in.
- Disable sharing of downloaded updates with other PCs, also known as Delivery Optimization.
- Prevent Windows from auto-installing device companion apps.
Appearance
- Enable dark mode for system and apps.
- Disable transparency, animations and visual effects.
Start Menu & Search
- Customize the start menu by removing pinned apps, hiding recommendations, and customizing the ‘All Apps’ section.
- Disable the Phone Link mobile devices integration in the start menu.
- Disable Bing web search & Copilot integration and Microsoft Store app suggestions in Windows search.
Taskbar
- Change taskbar alignment.
- Customize or hide taskbar buttons like the search bar, taskview and more.
- Disable widgets on the taskbar & lock screen.
- Enable the ‘End Task’ option in the taskbar right click menu to quickly force-close apps.
- Enable the ‘Last Active Click’ behavior in the taskbar app area. This allows you to repeatedly click on an application’s icon in the taskbar to switch focus between the open windows of that application.
- Customize how app buttons are shown on the taskbar.
File Explorer
- Change the default location that File Explorer opens to.
- Show file extensions for known file types.
- Show hidden files, folders and drives.
- Hide the Home, Gallery or OneDrive section from the File Explorer navigation pane.
- Hide duplicate removable drive entries from the File Explorer navigation pane, so only the entry under ‘This PC’ remains.
- Add all common folders (Desktop, Downloads, etc.) back to ‘This PC’ in File Explorer.
- Change drive letter position or visibility in File Explorer.
Multi-tasking
- Disable window snapping.
- Disable Snap Assist and Snap Layout suggestions when dragging or snapping windows.
- Change whether tabs are shown when snapping windows or pressing Alt+Tab.
Optional Windows Features
- Enable Windows Sandbox, a lightweight desktop environment for safely running applications in isolation.
- Enable Windows Subsystem for Linux which allows you to run a Linux environment directly on Windows.
Other
- Disable Xbox Game Bar integration & game/screen recording. This also disables
ms-gamingoverlay/ms-gamebarpopups if you uninstall the Xbox Game Bar. - Disable bloat in Brave browser (AI, Crypto, News, etc.)
Advanced Features
- Ability to apply changes to a different user, instead of the currently logged in user.
- Sysprep mode to apply changes to the Windows Default user profile. Which ensures, all new users will have the changes automatically applied to them.
Contributing
We welcome contributions of all kinds! Please see our Contributing Guidelines for detailed instructions on how to get started and best practices for contributing.
License
Win11Debloat is licensed under the MIT license. See the LICENSE file for more information.
相似文章
@pritipatelfgoo: 你现在用的 Windows,后台可能正运行着 200 多个系统服务 其中相当一部分,要么你根本用不上,要么一直在后台收集数据、推送广告、追踪位置 有人做了一个完全免费、开源的工具,专门把 Windows 这几年那些反用户设计尽可能一键关掉…
optimizerDuck 是一款免费开源的 Windows 优化工具,可一键关闭 Cortana、Copilot、广告、遥测数据等反用户设计,支持 35+ 项系统优化和 200+ 系统服务管理,兼容 Windows 10/11 x64,无需安装且无广告。
Raphire/Win11Debloat
Win11Debloat 是一个轻量级的 PowerShell 脚本,可移除预装应用、禁用遥测,并定制 Windows 10 和 11。
@_guillecasaus: 你的Windows电脑后台现在正运行着超过200个服务。其中大部分都在消耗资源、收集数据……
optimizerDuck 是一款免费开源的优化工具,可用于清理Windows 10/11系统,移除预装软件、禁用不必要的服务、优化性能与隐私,并内置还原功能。
@denziideng: 我的妈呀,发现一个Windows/Office 免费激活方案,一行命令就搞定…… Windows和Office激活一直是个老大难问题,网上各种激活工具鱼龙混杂,稍不注意就可能中毒或者被杀毒软件拦截…… 现在找到个完全开源的方案,GitHu…
Microsoft Activation Scripts (MAS) 是一个开源的 Windows 和 Office 激活脚本工具,支持一行命令永久激活(HWID)、Office 激活、Windows 版本升级等,GitHub 上拥有 17.3 万+ Star,社区公认安全可靠。
@xiaofeilong99: Windows 党注意了,微软自己下场补 Coreutils 了。 cat、cp、ls、mkdir、pwd、rm、sort、tee 这些命令,以前你在 Linux / macOS 用得好好的,到了 Windows 就各种别扭。 现在微软开…
微软发布了 Coreutils for Windows,这是一套原生的 Unix 风格核心工具(如 cat、cp、ls 等),旨在减少跨平台脚本和开发环境的差异,可通过 WinGet 安装,目前处于预览阶段。