Remotely edit windows host file?


Recommended Posts

On the computer with the hosts file, you could probably share out the Windows\System32\drivers\etc folder to the network so you can browse to that computer over the network & edit the hosts file. You'll need to make sure you set the correct share & file permissions to make that work.

e.g. if you share it out, in Notepad on your main computer you could open \\this-remote-computer\the-share-name\hosts directly. Or even just overwrite the hosts file using a batch file or something, if your plan is to overwrite it for whatever reason.

Every Windows computer has an administravite C$ share set up by default. If you have administrative access (username/password) to the computer, and you don't have windows file sharing blocked on the firewall, just run the following at a run dialog from the remote computer:

\\foo\c$

Where "foo" is either the hostname OR IP address of the remote machine you wish to modify. This should open it's C drive and allow you to view/modify the files as if you were sitting at the computer. If you get "Access Denied" or "Permission Denied" when trying to access the computer (Not "Timed Out" or anything), then just make sure you have "Simple File Sharing" turned off on the remote PC. If it's turned on, the machine will automatically assume the use of the "Guest" account instead of prompting you for a username/password.

  On 05/04/2011 at 01:18, Sharpstick68 said:

Is there a way to edit a host file to block websites remotely? like if I want to do it to a computer in my house I mean...

http://www.mvps.org/winhelp2002/hostswin7.htm

http://www.mvps.org/winhelp2002/hosts.htm

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I wasn't implying people should be forced to use a single launcher. I prefer user choice. If Windows includes a decent game launcher, great, people might choose to use it if they want to. If it sucks, no one will use it. I would be completely against anyone being forced in that direction, just like I am against being forced to use 3rd party launchers if I choose to use Steam.
    • Sounds good, but that'd require Microsoft to develop and API of some sort and then get all the developers to support it... but everyone knows that while others will support Microsoft, Microsoft won't support itself and will kill off the feature... again. Microsoft has tried this trick in Windows 9x era, they tried it with the games library in Vista, they tried a big push for Games for Windows Live, and then again in Windows 8 with the WPA apps via their mobile/windows phone eco system. Now they're trying it again, and it's lets not forget that this isn't a push to make PC gaming better. It's not. To do that they need to provide at least the same level of quality and feature set of Steam, otherwise why else are gamers going to not use Steam. Right now Xbox app and everything Microsoft centric around the PC gaming front is exclusively for their new Xbox brand push to make everything an Xbox. Your Toaster, your cat, your PC, your VR headset, everything is a Xbox and that'll last for this generation of Xbox now probably. Then, like Microsoft always has done and will do, they'll drop it like a hot potato and everyone will be left crying. Point in case, bringing Xbox games to the ROG handheld, their entire point of this... They're marketing it as if it's an Xbox console in a handheld, yet, it's not. There are going to be Xbox gamers who think, they'll be able to pickup their Xbox one games and play them on a handheld like Nintendo and Steam Deck users... except they're going to quickly find out that their Xbox game library is almost entirely missing or games they've already purchased on the Xbox need to be purchased again on the 'this is an Xbox' handheld.
    • man i remember hearing about new icons years ago and we still are at this......
    • That's entirely speculation. If he wants these on the road, I would assume (and hope) that he's tested the crap out of these things in real world scenario simulations until he (and any government regulators) are 100% convinced that they are as safe as a human driver before letting them on the streets of a real city. You don't test an automated ton of steel and aluminum with a big engine capable of going up to 200 mph by sticking it a public street with a human behind the wheel "just in case" and hoping for the best.
  • Recent Achievements

    • Dedicated
      Camlann earned a badge
      Dedicated
    • Week One Done
      fredss earned a badge
      Week One Done
    • Dedicated
      fabioc earned a badge
      Dedicated
    • One Month Later
      GoForma earned a badge
      One Month Later
    • Week One Done
      GoForma earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      637
    2. 2
      Michael Scrip
      224
    3. 3
      ATLien_0
      219
    4. 4
      +FloatingFatMan
      142
    5. 5
      Xenon
      135
  • Tell a friend

    Love Neowin? Tell a friend!