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

相关推荐
lularible1 小时前
HSM技术精讲(1.4):当信道不再可信——密码学的诞生
安全·开源·密码学·嵌入式
@insist1231 小时前
信息安全工程师-数据库安全全体系解析与最佳实践
数据库·安全·软考·信息安全工程师·软件水平考试
银河外卖员5 小时前
VMware 虚拟机安装 Windows 10 系统详细图文教程
windows·vmware
渣渣灰95876 小时前
Windows 10 环境部署 Claude Code 教程
windows·vscode·calude code
元Y亨H7 小时前
Windows 内置管理员 (Administrator) 账户重命名指南
windows
水饺编程7 小时前
第5章,[Win32 章节] :几种典型的颜色
c语言·c++·windows·visual studio
KivenMitnick7 小时前
LovelyERes:AWD适用的蓝队综合工具
运维·安全·网络安全
STDD8 小时前
Samba 文件共享:Linux 服务器与 Windows/Mac 共享文件夹
linux·服务器·windows
在繁华处8 小时前
轻棋局(一):项目总览与架构设计
人工智能·windows
灰色人生qwer9 小时前
Python 规则:带默认值的参数必须放在不带默认值的后面
linux·windows·python