SHARE
TWEET

Windows Update Disable

TairikuOkami Nov 25th, 2017 (edited) 1,804 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rem https://www.ghacks.net/2017/12/03/allow-only-manual-updates-on-windows-10
  2. rem https://www.novirusthanks.org/products/win-update-stop
  3. rem https://www.sordum.org/9470/windows-update-blocker-v1-5/
  4.  
  5. rem Windows Update Manager - https://github.com/DavidXanatos/wumgr/releases
  6. rem DISM /Online /Add-Package /PackagePath:%USERPROFILE%\Desktop\Windows10.0-KB4464455.cab
  7.  
  8. rem Disable auto-checking for updates
  9. takeown /s %computername% /u %username% /f "%WINDIR%\System32\UsoClient.exe"
  10. icacls "%WINDIR%\System32\UsoClient.exe" /inheritance:r
  11. rem https://postimg.cc/tYR0PRy9
  12.  
  13. rem Disable checking for updates via GUI
  14. takeown /s %computername% /u %username% /f "%WINDIR%\System32\usocoreworker.exe"
  15. icacls "%WINDIR%\System32\usocoreworker.exe" /inheritance:r
  16.  
  17. rem To Restore (when there is update/upgrade updating exe, otherwise it will fail)
  18. rem icacls "%WINDIR%\System32\UsoClient.exe" /reset
  19. rem icacls "%WINDIR%\System32\usocoreworker.exe" /reset
  20.  
  21. rem Option 2 - remove SoftwareDistribution and create a nonexistent symlink, checking for updates will always fail
  22. rem taskkill /im TiWorker.exe /f
  23. rem net stop wuauserv /y
  24. rem rd "%WINDIR%\SoftwareDistribution" /s /q
  25. rem mklink /d "%WINDIR%\SoftwareDistribution" "X:\SoftwareDistribution"
  26.  
  27. rem Option 3 - block svchost.exe in the firewall (outbound) - but it also blocks updating of certificates (daily)
  28. rem But you have to setup DNS servers first, disable DNS Client service, restart
  29. rem wmic nicconfig where DHCPEnabled=TRUE call SetDNSServerSearchOrder ("1.1.1.1")
  30. rem reg add "HKLM\System\CurrentControlSet\Services\Dnscache" /v "Start" /t REG_DWORD /d "4" /f
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top