SHARE
TWEET

Windows Update Disable

TairikuOkami Nov 25th, 2017 (edited) 1,350 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-1
  4. rem https://greatis.com/blog/stopupdates10
  5.  
  6. rem Windows Update Manager - https://github.com/DavidXanatos/wumgr/releases
  7. rem DISM /Online /Add-Package /PackagePath:%USERPROFILE%\Desktop\Windows10.0-KB4464455.cab
  8.  
  9. rem Option 1 - Disable auto-checking for updates (manual checking works, whenever YOU want, not Windows 10)
  10. takeown /f "%WINDIR%\System32\UsoClient.exe" /a
  11. icacls "%WINDIR%\System32\UsoClient.exe" /inheritance:r /grant:r Administrators:F /c
  12. icacls "%WINDIR%\System32\UsoClient.exe" /remove "Administrators" "Authenticated Users" "Users" "System"
  13. rem https://i.postimg.cc/q7cS25g6/capture-03312019-102210.jpg
  14.  
  15. rem takeown /s %computername% /u %username% /f "%WINDIR%\System32\UsoClient.exe"
  16. rem icacls "%WINDIR%\System32\UsoClient.exe" /inheritance:r /grant:r %username%:(OI)(CI)F /q /c
  17. rem icacls "%WINDIR%\System32\UsoClient.exe" /remove %username% "Administrators" "Authenticated Users" "Users" "System"
  18.  
  19. rem To Restore (when there is update/upgrade updating exe, otherwise it will fail)
  20. rem icacls "%WINDIR%\System32\UsoClient.exe" /reset
  21.  
  22. rem Option 2 - remove SoftwareDistribution and create a nonexistent symlink, checking for updates will always fail
  23. rem taskkill /im TiWorker.exe /f
  24. rem net stop wuauserv /y
  25. rem rd "%WINDIR%\SoftwareDistribution" /s /q
  26. rem mklink /d "%WINDIR%\SoftwareDistribution" "X:\SoftwareDistribution"
  27.  
  28. rem Option 3 - block svchost.exe in the firewall (outbound) - but it also blocks updating of certificates (daily)
  29. rem But you have to setup DNS servers first, disable DNS Client service, restart
  30. rem wmic nicconfig where DHCPEnabled=TRUE call SetDNSServerSearchOrder ("1.1.1.1")
  31. 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