当前位置:首页 >软件工具 > 电脑 > 正文内容

Windows系统更新&安全组件 一键禁用脚本bat

6032026-06-03电脑11

Windows系统更新&安全组件 一键禁用脚本bat 电脑 bat 第1张

Windows系统更新&安全组件 一键禁用脚本.bat,需要多用管理员权限多执行几次.

使用步骤

1.新建文本 “一键禁用脚本.bat

2.复制下面代码

3.更改后缀名为.bat “一键禁用脚本.bat”

4.运行即可


脚本代码如下:


chcp 65001 >nul

echo ==============================================

echo 正在禁用Windows Defender、自动更新及安全功能...

echo 警告:此操作会大幅降低系统安全性!

echo ==============================================

pause


:: 1. 关闭UAC(可选,如需保留可注释)

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrenTVersion\Policies\System" /v EnableLUA /t REG_DWORD /d 0 /f >nul


:: 2. 删除EPP右键菜单扩展

reg delete "HKLM\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1

reg delete "HKLM\SOFTWARE\Classes\Directory\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1

reg delete "HKLM\SOFTWARE\Classes\Drive\shellex\ContextMenuHandlers\EPP" /f >nul 2>&1


:: 3. 禁用Windows Defender核心功能

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f >nul

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiVirus /t REG_DWORD /d 1 /f >nul


:: 4. 禁用Defender实时防护

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableBehaviorMonitoring /t REG_DWORD /d 1 /f >nul

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableIOAVProtection /t REG_DWORD /d 1 /f >nul

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableOnAccessProtection /t REG_DWORD /d 1 /f >nul

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f >nul

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableScanOnRealtimeEnable /t REG_DWORD /d 1 /f >nul


:: 5. 禁用Defender通知和托盘

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Notifications" /v DisableNotifications /t REG_DWORD /d 1 /f >nul

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender Security Center\Systray" /v HideSystray /t REG_DWORD /d 1 /f >nul


:: 6. 禁用SmartScreen

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrenTVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d Off /f >nul

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v EnableSmartScreen /t REG_DWORD /d 0 /f >nul


:: 7. 禁用Windows自动更新

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 1 /f >nul

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f >nul

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v UseWUServer /t REG_DWORD /d 1 /f >nul

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v WUServer /t REG_SZ /d http://127.0.0.1 /f >nul

reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v WUStatusServer /t REG_SZ /d http://127.0.0.1 /f >nul


:: 8. 隐藏更新/Defender设置页

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v SettingsPageVisibility /t REG_SZ /d "Hide:windowsupdate;windowsupdate-action;windowsdefender" /f >nul


:: 9. 禁用安全相关服务

sc config BITS start= disabled >nul

sc config DoSvc start= disabled >nul

sc config SecurityHealthService start= disabled >nul

sc config Sense start= disabled >nul

sc config UsoSvc start= disabled >nul

sc config WaaSMedicSvc start= disabled >nul

sc config wscsvc start= disabled >nul


:: 10. 停止已运行的安全服务

net stop BITS /y >nul 2>&1

net stop DoSvc /y >nul 2>&1

net stop SecurityHealthService /y >nul 2>&1

net stop Sense /y >nul 2>&1

net stop UsoSvc /y >nul 2>&1

net stop WaaSMedicSvc /y >nul 2>&1

net stop wscsvc /y >nul 2>&1


echo.

echo 禁用操作完成!建议仅在测试环境使用,按任意键退出...

pause >nul

exit                

echo.

pause

扫描二维码推送至手机访问。

版权声明:本文由603度发布,如需转载请注明出处。

                  图文来自网络,如有侵权联系作者。

本文链接:https://999603.xyz/post/85.html

标签:电脑bat
分享给朋友:
返回列表

上一篇:一个命令查看电脑有没有被动过

没有最新的文章了…

相关文章

快速给 exe、dll 等多种格式的软件工具加密,加授权验证

快速给 exe、dll 等多种格式的软件工具加密,加授权验证

一键添加一机一码验证,一键给软件工具加密,一键加验证工具这款一键加验证工具,是软件…

JPG+FileBinder将压缩包文件隐藏进图片里

JPG+FileBinder将压缩包文件隐藏进图片里

JPG+FileBinder将压缩包文件隐藏进图片里JPG+FileBinder…

pinga图片无损压缩

pinga图片无损压缩

Pinga 是一款免费图片优化工具,支持 PNG、JPEG、APNG 格式,有损压…

电脑端VX多开器 可自定开启数量

电脑端VX多开器 可自定开启数量

推荐一款简易的电脑端VX多开器,可自定义开启数量。操作简单,只需选择VX的安装路径…

电脑挂机锁绿色版CoolLock_v6.0.0

电脑挂机锁绿色版CoolLock_v6.0.0

电脑挂机锁绿色版CoolLock_v6.0.0   人离开电脑…

Android实时投屏控制软件:QtScrcpy v3.3.3

Android实时投屏控制软件:QtScrcpy v3.3.3

QtScrcpy是一款开源免费的Android设备投屏控制工具,支持通过USB或T…

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。