落叶的心思的博客

一个记录与折腾的小站

使用开源脚本RemoveWindowsAI禁用Win11 AI功能

发布时间:

发布者:

分类:

阅读数:

23

点赞数:

0

阅读时长预计:

3 分钟

项目简介

RemoveWindowsAI 是一个 PowerShell 脚本工具,旨在从 Windows 11 25H2 及后续版本中移除所有人工智能功能和组件,以提升用户体验、隐私和安全性。

为什么需要这个脚本?

当前 Windows 11 25H2 版本及后续版本将包含越来越多的 AI 功能和组件。此脚本旨在移除所有这些功能,为用户提供更简洁、隐私更受保护的系统环境。

主要功能

  1. 禁用注册表项
    • 禁用副驾驶(Copilot)
    • 禁用召回(Recall)
    • 禁用输入洞察和打字数据采集
    • Edge 浏览器中的副驾驶
    • 在画图软件中创建图像功能
    • 移除 AI Fabric 服务
    • 禁用人工智能行为
    • 在画图软件中禁用 AI
    • 禁用语音访问
    • 关闭 AI 语音效果
    • 在设置搜索中禁用人工智能
  2. 防止重新安装 AI 软件包
    • 安装自定义 Windows 更新包,防止在 CBS(基于组件的服务)存储中重新安装 AI 包
  3. 禁用副驾驶策略
    • 禁用 IntegratedServicesRegionPolicySet.json 中与 Copilot 和 Recall 相关的策略
  4. 移除 AI Appx 软件包
    • 移除所有 AI appx 包,包括 Nonremovable 包和 WindowsWorkload
  5. 移除召回可选功能
  6. 移除 CBS 中的人工智能软件包
    • 移除 CBS(基于组件的服务)商店中隐藏和锁定的 AI 软件包
  7. 删除人工智能文件
    • 对系统进行全面清理,删除所有剩余的 AI 安装程序、注册表项和软件包文件
  8. 隐藏人工智能组件
    • 隐藏设置页面中的 AI Components
  9. 禁用记事本中的重写 AI 功能
  10. 移除召回任务
    • 强制删除 Recall 的所有计划任务实例
  11. 安装经典应用
    • 用经典版本替换现代人工智能应用程序
    • 可选替换:记事本、画图、截图工具、照片查看器
    • 可安装旧版照片应用

使用方法

注意事项

警告 :某些第三方防病毒软件会误报此脚本为恶意软件。如需使用,建议:

  1. 暂时禁用防病毒软件
  2. 或将脚本设置为排除项
  3. 始终建议先在虚拟机中测试

基本使用方式

通过用户界面启动

powershell

& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/zoicware/RemoveWindowsAI/main/RemoveWindowsAi.ps1")))

精简命令

powershell

& ([scriptblock]::Create((irm 'https://kutt.it/RWAI')))

以非交互模式运行并启用所有选项

powershell

& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/zoicware/RemoveWindowsAI/main/RemoveWindowsAi.ps1"))) -nonInteractive -AllOptions

使用特定选项运行

powershell

& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/zoicware/RemoveWindowsAI/main/RemoveWindowsAi.ps1"))) -nonInteractive -Options DisableRegKeys,RemoveAppxPackages,DisableCopilotPolicies

所有可用选项:

DisableRegKeys
PreventAIPackageReinstall
DisableCopilotPolicies
RemoveAppxPackages
RemoveRecallFeature
RemoveCBSPackages
RemoveAIFiles
HideAIComponents
DisableRewrite
RemoveRecallTasks

安装经典应用程序

powershell

& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/zoicware/RemoveWindowsAI/main/RemoveWindowsAi.ps1"))) -nonInteractive -InstallClassicApps photoviewer,mspaint,snippingtool,notepad

经典应用选项:

photoviewer
mspaint
snippingtool
notepad
photoslegacy

备份和恢复功能

启用备份模式运行

powershell

& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/zoicware/RemoveWindowsAI/main/RemoveWindowsAi.ps1"))) -nonInteractive -backupMode -AllOptions

撤销更改

powershell

& ([scriptblock]::Create((irm "https://raw.githubusercontent.com/zoicware/RemoveWindowsAI/main/RemoveWindowsAi.ps1"))) -nonInteractive -revertMode -AllOptions

重要说明

系统要求

  • 仅支持 Windows PowerShell 5.1
  • 不支持 PowerShell 7,使用会导致问题
  • 需要以管理员身份运行

脚本原作者及仓库地址:

https://github.com/zoicware/RemoveWindowsAI

说明: 本文内容基于公开资料与个人实践整理而成,仅供参考。

转载声明:

转载此文章请注明出处。

若本文内容侵犯了您的权益,请通过本站下方邮箱与我联系,我会尽快处理,谢谢!

分享到:

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

最新评论

  1. 落叶的心思

科学与工具

收藏与发文

登录与注册