希沃的 MT71A-SHG
今天去找dmp文件时才发现 有预留 开启/关闭 更新 的脚本
目录在 C:\ProgramData 下

源文件:
https://wwbtg.lanzoub.com/iJ2rc3mxdh6f
下面是bat脚本源码
disableupdate.bat
echo on
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
setlocal enabledelayedexpansion
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v WUServer /t REG_SZ /d .. /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v WUStatusServer /t REG_SZ /d .. /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v DoNotConnectToWindowsUpdateInternetLocations /t REG_DWORD /d 1 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v UseWUServer /t REG_DWORD /d 1 /f
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v NoAutoUpdate /t REG_DWORD /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DriverSearching" /v DontSearchWindowsUpdate /t REG_DWORD /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v ExcludeWUDriversInQualityUpdate /t REG_DWORD /d 1 /f
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v SetDisableUXWUAccess /t REG_DWORD /d 1 /f
C:\Windows\System32\takeown.exe /f "C:\Windows\SoftwareDistribution\DataStore"
C:\Windows\System32\icacls.exe "C:\Windows\SoftwareDistribution\DataStore" /remove everyone
C:\Windows\System32\takeown.exe /f "C:\Windows\SoftwareDistribution\download"
C:\Windows\System32\icacls.exe "C:\Windows\SoftwareDistribution\download" /remove everyone
C:\Windows\System32\takeown.exe /f "C:\Windows\SoftwareDistribution\sls"
C:\Windows\System32\icacls.exe "C:\Windows\SoftwareDistribution\sls" /remove everyone
C:\Windows\System32\icacls.exe "C:\Windows\SoftwareDistribution\DataStore" /deny everyone:(F)
C:\Windows\System32\icacls.exe "C:\Windows\SoftwareDistribution\download" /deny everyone:(F)
C:\Windows\System32\icacls.exe "C:\Windows\SoftwareDistribution\sls" /deny everyone:(F)
cmd /C taskkill /f /im MoUsoCoreWorker.exe
taskkill /f /im MoUsoCoreWorker.exe
sc stop trustedinstaller
sc config trustedinstaller binpath= "cmd.exe /c C:\Windows\System32\icacls.exe C:\Windows\UUS\amd64\MoUsoCoreWorker.exe /deny everyone:(F)"
sc start trustedinstaller
sc stop trustedinstaller
sc config trustedinstaller binpath= "C:\WINDOWS\servicing\TrustedInstaller.exe"
sc start trustedinstaller
Sc config wuauserv start= disabled
Net stop wuauserv
rem pause
enable.bat
echo on
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
setlocal enabledelayedexpansion
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v WUServer /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v WUStatusServer /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v DoNotConnectToWindowsUpdateInternetLocations /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v UseWUServer /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU /v NoAutoUpdate /f
C:\Windows\System32\takeown.exe /f "C:\Windows\SoftwareDistribution\DataStore"
C:\Windows\System32\icacls.exe "C:\Windows\SoftwareDistribution\DataStore" /remove everyone
C:\Windows\System32\takeown.exe /f "C:\Windows\SoftwareDistribution\download"
C:\Windows\System32\icacls.exe "C:\Windows\SoftwareDistribution\download" /remove everyone
C:\Windows\System32\takeown.exe /f "C:\Windows\SoftwareDistribution\sls"
C:\Windows\System32\icacls.exe "C:\Windows\SoftwareDistribution\sls" /remove everyone
sc stop trustedinstaller
sc config trustedinstaller binpath= "cmd.exe /c C:\Windows\System32\icacls.exe C:\Windows\UUS\amd64\MoUsoCoreWorker.exe /remove everyone"
sc start trustedinstaller
sc stop trustedinstaller
sc config trustedinstaller binpath= "C:\WINDOWS\servicing\TrustedInstaller.exe"
sc start trustedinstaller
Sc config wuauserv type= own
Sc config wuauserv start= auto
Net start wuauserv
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /v SetDisableUXWUAccess /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\GPCache\CacheSet002" /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsUpdate\UpdatePolicy\GPCache\CacheSet001" /f
gpupdate /force
rem pause