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
  2. rem
  3. rem
  5. rem Windows Update Manager -
  6. rem DISM /Online /Add-Package /PackagePath:%USERPROFILE%\Desktop\
  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
  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
  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
  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"
  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 ("")
  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