Would editing the hosts file temporarily block Windows 10 updates?

14,702

Solution 1

According to Microsoft Answers, these are the hosts you would need to block to prevent updates.

http://windowsupdate.microsoft.com
http://*.windowsupdate.microsoft.com
https://*.windowsupdate.microsoft.com
http://*.update.microsoft.com
https://*.update.microsoft.com
http://*.windowsupdate.com
http://download.windowsupdate.com
http://download.microsoft.com
http://*.download.windowsupdate.com
http://wustat.windows.com
http://ntservicepack.microsoft.com
http://stats.microsoft.com
https://stats.microsoft.com

Solution 2

Edit your windows host file to include these

########################
# Block windows update
########################
0.0.0.0 *.download.windowsupdate.com
0.0.0.0 *.microsoft.com
0.0.0.0 *.update.microsoft.com
0.0.0.0 *.windowsupdate.com
0.0.0.0 *.windowsupdate.microsoft.com
0.0.0.0 download.microsoft.com
0.0.0.0 download.windowsupdate.com
0.0.0.0 ntservicepack.microsoft.com
0.0.0.0 test.stats.update.microsoft.com
0.0.0.0 windowsupdate.microsoft.com
0.0.0.0 wustat.windows.com
Share:
14,702

Related videos on Youtube

George T
Author by

George T

Updated on September 18, 2022

Comments

  • George T
    George T almost 2 years

    Like several other people, I'm annoyed by the inability to choose when to update in Windows 10 Home, and this issue is one of the (several) reasons I hesitate to upgrade from Windows 7.

    I don't have Windows 10 yet, so I can't try it for myself, but I thought that if I edited the hosts file and pointed update.windows.com (or whichever URL update uses) to an invalid IP address, that would effectively block Windows from seeing if any updates are available until the line was commented out.

    Would this strategy work or does Windows 10 have a way to detect and bypass it?

    Note: I don't consider this question to be a duplicate of Stopping all automatic updates Windows 10 as it's asking about a certain method. I understand it could be an answer to that question, but I couldn't post it as one without knowing if it works.

    • Moab
      Moab almost 9 years
      In this link the method posted worked for Windows 10 build 9926
    • Moab
      Moab almost 9 years
      Confirmed applet reg hack no longer works in RTM.
  • Moab
    Moab almost 9 years
    I doubt that is all of them, maybe someone will confirm they block Windows 10 updates for sure.
  • Scott - Слава Україні
    Scott - Слава Україні about 7 years
    Is there some way to block a subdomain (like *.update.microsoft.com) by editing the hosts file?  I believe that this is impossible, so the above is not really an answer to the OP's question.
  • geek1011
    geek1011 about 7 years
    @scott You can use a custom DNS server and redirect those domains to an invalid IP.
  • Scott - Слава Україні
    Scott - Слава Україні about 7 years
    Fine.   You have written an answer to a (slightly) different question.  You have not answered this question.
  • Justin Goldberg
    Justin Goldberg over 2 years
    Use 0.0.0.0, it will drop the connections much quicker and use less cpu and memory.
  • Dean Van Greunen
    Dean Van Greunen over 2 years
    @JustinGoldberg changes made, thanks.