boltkiller

Windows 10是强制自动更新的,并不管更新的时候你在不在用电脑,资源抢占导致系统非常的卡,慢,而且更新包极大,有时候一开机就更新几个小时,实在困扰。

Windows 10的自动更新是关不掉的,你停止了他又给你启动,你禁用了他又给你启用,你甚至删除了windows Update服务,他一样的给你更新。

经过研究,总结出一系列手段,能够办到禁止Windows自动更新机制,一共使用六个手段并发执行,这留个手段是:

1、计划任务上取消Update,Windows自带的计划任务会定期去启动Windows Update
2、关闭Windows Defender,Windows默认启动Defender,通过进程跟踪发现Defender会去启动Windows Update,而且系统更新和Defender有很大关联
3、重定向Windows更新到内网不可用的地址,以及不允许系统连接其他互联网更新源
4、停止并禁止windows Update
5、关闭WaaSMedicSvc,研究发现这个服务会去修复Windows Update无法启动的问题并让他启动
6、组策略关闭windows更新,在组策略下配置禁止更新

合并成为批处理如下,可以直接复制使用,但是需要管理员权限执行

@echo off
echo Config Disable Windows Update....
net stop wuauserv
sc config wuauserv start= disabled
schtasks.exe /change /tn "\Microsoft\Windows\WindowsUpdate\Scheduled Start" /disable

echo Config Group Policy....
echo [version]>gp.inf
echo signature="$CHICAGO$" >>gp.inf
echo Revision=1 >>gp.inf
echo [Registry Values] >>gp.inf
echo MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\UpdateServiceUrlAlternate=1,"http://127.0.0.1" >>gp.inf
echo MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUServer=1,"http://127.0.0.1" >>gp.inf
echo MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\WUStatusServer=1,"http://127.0.0.1" >>gp.inf
echo MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\DoNotConnectToWindowsUpdateInternetLocations=4,1 >>gp.inf
echo MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\NoAutoUpdate=4,1 >>gp.inf
echo MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU\UseWUServer=4,1 >>gp.inf
echo MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\AllowFastServiceStartup=4,0 >>gp.inf
echo MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\DisableAntiSpyware=4,1 >>gp.inf
echo MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection\DisableBehaviorMonitoring=4,1 >>gp.inf
echo MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender\Real-Time Protection\DisableRealtimeMonitoring=4,1 >>gp.inf
echo MACHINE\SYSTEM\CurrentControlSet\Services\WaaSMedicSvc\Start=4,4 >>gp.inf
echo MACHINE\SYSTEM\CurrentControlSet\Services\mpssvc\Start=4,4 >>gp.inf

secedit /configure /db custom.sdb /cfg gp.inf
del custom.*
pause

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-12-29
  • 2021-11-27
  • 2021-09-20
  • 2021-07-12
  • 2021-08-14
  • 2022-01-21
猜你喜欢
  • 2021-07-02
  • 2021-04-07
  • 2021-11-06
  • 2022-02-07
  • 2021-05-04
  • 2022-01-01
相关资源
相似解决方案