彻底关闭win10病毒防护和自动更新

2026-09-2711:53:49 评论 6

复制后/txt文件另存为.bat文件/运行

@echo off
chcp 65001 >nul
echo ======================写入注册表关闭Defender、SmartScreen、Windows更新======================
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableBehaviorMonitoring /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableIOAVProtection /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection" /v DisableScriptScanning /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d Off /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v DisableWindowsUpdateAccess /t REG_DWORD /d 1 /f
reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v DoNotConnectToWindowsUpdateInternetLocations /t REG_DWORD /d 1 /fecho ======================停止并禁用Windows Update、BITS服务======================
net stop wuauserv
net stop bits
sc config wuauserv start= disabled
sc config bits start= disabledecho ======================清理补丁缓存======================
ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
ren C:\Windows\System32\catroot2 catroot2.old

echo ======================PowerShell关闭Defender全部实时防护模块======================
powershell Set-MpPreference -DisableRealtimeMonitoring $true
powershell Set-MpPreference -DisableBehaviorMonitoring $true
powershell Set-MpPreference -DisableIOAVProtection $true
powershell Set-MpPreference -DisableScriptScanning $true
powershell Set-MpPreference -DisableCloudProtection $true
powershell Set-MpPreference -DisableBlockAtFirstSeen $true

echo ======================禁用WindowsUpdate计划任务======================
powershell Get-ScheduledTask -TaskPath "\Microsoft\Windows\WindowsUpdate\" | Disable-ScheduledTask

echo.
echo 全部操作完成,重启电脑生效
pause

继续阅读
Windows10安装跳过微软账号登录命令 刘志强

Windows10安装跳过微软账号登录命令

场景1:安装到网络连接界面,还没到邮箱账号输入页面 按下Shift+F10打开命令窗口,输入: OOBE\BYPASSNRO (字母O) 电脑自动重启,再次进入安装流程,就会出现【我没有Interne...
岁岁安稳,心底遥望。 刘志强

岁岁安稳,心底遥望。

半生辗转,未携锋芒,只在烟火寻常处,做个躬身前行的赶路人。人间喧嚣扰攘,终是看透:浮名薄利皆虚妄,唯愿守着至亲,把岁岁年年过成细水长流的安稳。偶有一念,想探那彼岸微光,却困于尘缘,寻不到渡我的舟,只在...
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: