Board logo

标题: [系统相关] 求win10永久关闭自动更新的批处理代码 [打印本页]

作者: 522235677    时间: 2020-12-13 11:27     标题: 求win10永久关闭自动更新的批处理代码

没有在网上搜到相关的批处理,图文教程太繁琐,需要关的地方多,好久没研究批处理了,生疏了。所以看看各路大神有没有现成的代码,正好在论坛问一下留下记录还能帮助一下其他人
作者: Batcher    时间: 2023-11-30 22:06

Win10禁止自动更新.bat
  1. @fltmc >nul || mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~f0","%*",,"runas",1)(window.close) && exit /b
  2. @echo off
  3. schtasks /change /tn "\Microsoft\Windows\WindowsUpdate\Scheduled Start" /disable
  4. sc stop wuauserv
  5. sc config wuauserv start= disabled
  6. sc stop UsoSvc
  7. sc config UsoSvc start= disabled
复制代码
Win10恢复自动更新.bat
  1. @fltmc >nul || mshta vbscript:CreateObject("Shell.Application").ShellExecute("%~f0","%*",,"runas",1)(window.close) && exit /b
  2. @echo off
  3. schtasks /change /tn "\Microsoft\Windows\WindowsUpdate\Scheduled Start" /enable
  4. sc config wuauserv start= auto
  5. sc start  wuauserv
  6. sc config UsoSvc start= delayed-auto
  7. sc start UsoSvc
复制代码





欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2