Raphire / Win11Debloat

Raphire / 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!

Win11Debloat 是一款轻量级且易于使用的 PowerShell 脚本,无需安装即可快速清理并自定义您的 Windows 使用体验!您可以使用它来移除预装应用、禁用遥测、删除干扰性的界面元素等等。无需再费力地逐一调整设置或手动卸载应用,Win11Debloat 让整个过程变得简单快捷!

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.

该脚本还包含许多系统管理员和高级用户会喜欢的功能,例如强大的命令行界面、对 Windows 审核模式(Audit mode)的支持,以及修改其他 Windows 用户设置的能力。您还可以轻松导出和导入首选设置,从而在所有系统上快速应用相同的配置。更多详情请参阅我们的 Wiki。如果此脚本对您有帮助,请考虑请我喝杯咖啡以支持我的工作。

Usage Warning

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.

快速方法

通过 PowerShell 自动下载并运行脚本。打开 PowerShell 或终端,将以下命令复制并粘贴到 PowerShell 中:& ([scriptblock]::Create((irm "https://debloat.raphi.re/")))。等待脚本自动下载并启动 Win11Debloat。请仔细阅读并按照屏幕上的说明进行操作。此方法支持通过命令行参数来自定义脚本行为。

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.bat file 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.

传统方法

手动下载并运行脚本。下载最新版本的脚本,并将 .ZIP 文件解压到您想要的位置。进入 Win11Debloat 文件夹,双击 Run.bat 文件启动脚本。注意:如果控制台窗口立即关闭且没有任何反应,请尝试下方的“高级方法”。请接受 Windows UAC 提示以管理员身份运行脚本,这是脚本正常运行所必需的。请仔细阅读并按照屏幕上的说明进行操作。

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.

高级方法

手动下载脚本并通过 PowerShell 运行。推荐高级用户使用。下载最新版本的脚本,并将 .ZIP 文件解压到您想要的位置。以管理员身份打开 PowerShell 或终端。输入以下命令临时启用 PowerShell 执行权限:Set-ExecutionPolicy Unrestricted -Scope Process -Force。在 PowerShell 中,导航到解压文件的目录,例如:cd c:\Win11Debloat。现在输入以下命令运行脚本:.\Win11Debloat.ps1。请仔细阅读并按照屏幕上的说明进行操作。

Features

Below is an overview of the key features and functionality offered by Win11Debloat. You can visit the wiki for more details. Tip: All of the changes made by Win11Debloat can easily be reverted and almost all of the apps can be reinstalled through the Microsoft Store.

功能概览

以下是 Win11Debloat 所提供的主要功能概览。您可以访问 Wiki 获取更多详细信息。提示:Win11Debloat 所做的所有更改都可以轻松还原,且几乎所有卸载的应用都可以通过 Microsoft Store 重新安装。

  • App Removal: Remove a wide variety of preinstalled apps. 应用移除: 移除各种预装应用。
  • 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. 隐私与建议内容: 禁用遥测、诊断数据、活动历史记录、应用启动跟踪和定向广告。禁用 Windows、锁屏界面和 Microsoft Edge 中的提示、技巧、建议和广告。禁用 Windows 定位服务、应用位置访问权限和“查找我的设备”位置跟踪。隐藏设置“主页”上的 Microsoft 365 广告,或完全隐藏“主页”。
  • 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. AI 功能: 禁用并移除 Microsoft Copilot、Windows Recall 和 Click to Do。阻止 AI 服务 (WSAIFabricSvc) 自动启动。禁用 Edge、画图和记事本中的 AI 功能。
  • 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 10 风格的右键菜单。关闭“提高指针精确度”(鼠标加速)。禁用粘滞键快捷键。禁用存储感知自动磁盘清理。禁用快速启动以确保完全关机。禁用 BitLocker 自动设备加密。禁用现代待机(Modern Standby)期间的网络连接以减少电池消耗。
  • 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 (Delivery Optimization). Prevent Windows from auto-installing device companion apps. Windows 更新: 阻止 Windows 在更新发布后立即获取。防止登录时在更新后自动重启。禁用与其他电脑共享已下载的更新(传递优化)。防止 Windows 自动安装设备配套应用。
  • 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. 开始菜单与搜索: 通过移除固定应用、隐藏推荐和自定义“所有应用”部分来自定义开始菜单。禁用开始菜单中的“手机连接”移动设备集成。禁用 Windows 搜索中的 Bing 网页搜索、Copilot 集成以及 Microsoft Store 应用建议。
  • 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. 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. Add all common folders (Desktop, Downloads, etc.) back to ‘This PC’ in File Explorer. Change drive letter position or visibility in File Explorer. 文件资源管理器: 更改文件资源管理器打开时的默认位置。显示已知文件类型的文件扩展名。显示隐藏的文件、文件夹和驱动器。从文件资源管理器的导航窗格中隐藏“主页”、“图库”或 OneDrive 部分。从导航窗格中隐藏重复的可移动驱动器条目。将所有常用文件夹(桌面、下载等)添加回“此电脑”。更改文件资源管理器中驱动器号的位置或可见性。
  • Multi-tasking: Disable window snapping. 多任务处理: 禁用窗口贴靠。