Win10一键禁用自动更新和Windows Defender安全中心

Win10这个系统,最让人难以接受的就是自动更新了,也不理会你在干嘛,自行联机用那其慢无比其卡无比的速度来给你更新,让你电脑cpu/内存/硬盘都吃满,无法正常使用。再有一个那就是Windows Defender安全中心太不听使唤,有时候下载的破解版绿化版软件,它能一声不吭的给你删除了,九头牛也拉不回来,想中止也不行。

针对Win10一键禁用自动更新,和Win10一键禁用Windows Defender安全中心,分享两个.bat命令,执行管理员权限,点击一下就行。自测Win10专业版可用。

Win10一键禁用自动更新.bat命令

bash 复制代码
net stop wuauserv
del C:\Windows\SoftwareDistribution\* /q /s /f
rd C:\Windows\SoftwareDistribution\DataStore /s /q
rd C:\Windows\SoftwareDistribution\Download /s /q
rd C:\Windows\SoftwareDistribution\SLS /s /q
echo 123>C:\Windows\SoftwareDistribution\DataStore
echo 123>C:\Windows\SoftwareDistribution\Download
echo 123>C:\Windows\SoftwareDistribution\SLS

win10一键禁用Windows Defender安全中心.bat命令

bash 复制代码
@echo off
chcp 65001 >nul 2>&1
title 禁用Windows Defender
mode con cols=80 lines=30

>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if %errorLevel% NEQ 0 (
    echo 正在请求管理员权限...
    goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
    echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
    echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
    "%temp%\getadmin.vbs"
    exit /B

:gotAdmin
    if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
    pushd "%CD%"
    CD /D "%~dp0"

echo.
echo [1/5] 正在结束Defender相关进程...
taskkill /F /IM MsMpEng.exe >nul 2>&1
taskkill /F /IM SecurityHealthSystray.exe >nul 2>&1
taskkill /F /IM SecurityHealthService.exe >nul 2>&1
echo 进程清理完成

echo.
echo [2/5] 正在禁用Defender核心服务...
sc config WinDefend start= disabled >nul 2>&1
net stop WinDefend >nul 2>&1
sc config SecurityHealthService start= disabled >nul 2>&1
net stop SecurityHealthService >nul 2>&1
sc config wscsvc start= disabled >nul 2>&1
net stop wscsvc >nul 2>&1
sc config Sense start= disabled >nul 2>&1
net stop Sense >nul 2>&1
echo 服务禁用完成

echo.
echo [3/5] 正在修改注册表策略...
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableBehaviorMonitoring /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableOnAccessProtection /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableScanOnRealtimeEnable /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v DisableSpynetReporting /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SubmitSamplesConsent /t REG_DWORD /d 2 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Real-Time Protection" /v DisableRealtimeMonitoring /t REG_DWORD /d 1 /f >nul 2>&1
reg add "HKLM\SOFTWARE\Microsoft\Windows Defender\Feature Configuration Database" /v DisableConfigurationMonitor /t REG_DWORD /d 1 /f >nul 2>&1
echo 注册表修改完成

echo.
echo [4/5] 正在禁用Defender计划任务...
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cache Maintenance" /Disable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Cleanup" /Disable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Scheduled Scan" /Disable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Verification" /Disable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\Windows Defender\WD Diagnostic Data Collector" /Disable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\Windows Defender\WD Elevated Diagnostics" /Disable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\Windows Defender\Windows Defender Update" /Disable >nul 2>&1
echo 计划任务禁用完成

echo.
echo [5/5] 正在禁用Defender内核驱动...
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WinDefend" /v Start /t REG_DWORD /d 4 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdFilter" /v Start /t REG_DWORD /d 4 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdNisDrv" /v Start /t REG_DWORD /d 4 /f >nul 2>&1
reg add "HKLM\SYSTEM\CurrentControlSet\Services\WdNisSvc" /v Start /t REG_DWORD /d 4 /f >nul 2>&1
echo 驱动禁用完成

echo.
echo ==============================================
echo 操作完成!请重启电脑使修改生效。
echo 重启后可在Windows安全中心验证效果。
echo ==============================================
pause >nul

参考:

win10下Windows Defender安全中心一键禁用bat命令https://206207.xyz/4985.html

一键关闭windows10自动更新https://206207.xyz/3616.html

相关推荐
见青..1 小时前
攻防世界-web:php2、easyupload
笔记·安全·题解
一个人旅程~2 小时前
intel的哪几代酷睿芯片存在“缩缸”缺陷?你的电脑受影响了吗?
windows·经验分享·电脑
星幻元宇VR3 小时前
VR司法矫正宣教机|智慧法治教育新方式
科技·学习·安全·vr·虚拟现实
数据知道3 小时前
MongoDB的Kerberos认证:详细讲述大型企业环境安全集成的实用技术
数据库·安全·mongodb
芥子沫3 小时前
Memos捷径(Shortcuts)用法介绍
linux·服务器·windows
脸红ฅฅ*的思春期4 小时前
Windows内核攻防—利用RTCore64驱动绕过Windows签名校验
windows·windows内核·dse绕过·rtcore64
white-persist4 小时前
【CTF线下赛 AWD】AWD 比赛全维度实战解析:从加固防御到攻击拿旗
网络·数据结构·windows·python·算法·安全·web安全
小云小白4 小时前
OpenCowork 实测:支持本地文件、飞书机器人的 Windows AI 助手(只需配置 Token)
windows·ai助手·oepncowork
QWQ___qwq10 小时前
Java线程安全深度总结:基本类型与引用类型的本质区别
java·安全·面试