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

    • Yup, a bit slow on some PCs at the time, but absolutely gorgeous.
    • That's essentially what I've been running on KDE
    • For some of us, we've never left! A lot of customization tools have allowed us to adopt a non-native glassy design.
    • iPadOS 26 is now official with improved windowing, menu bar, 'Liquid Glass' redesign, more by Taras Buria As expected, today, at WWDC 2025, Apple announced iOS 26 and other operating systems that now carry the 26 version number (for simplicity). iPadOS is also part of the big redesign, and it is now official with the new Liquid Glass design, improved window controls, a Mac-like menu bar, file management enhancements, and more. In addition to the general Liquid Glass redesign, which is now present across all of Apple's operating systems, iPadOS 26 received several iPad-exclusive upgrades. It now has a reworked windowing system that helps you organize and switch between apps. You can finally place and resize apps exactly how you want. Plus, iPadOS now has familiar window controls: three buttons for closing, minimizing, and resizing your app. Straight from macOS. Apps can now remember their previous size and position, and Expose can show you all open windows. Finally, iPadOS now has a menu bar, which is another thing that comes from macOS. It gives access to common actions, commands, and features. Developers can customize the menu bar in their apps and specify what features are available there. Apple is also upgrading the Files app with a reworked List view, which now shows more details about your files and the ability to expand or collapse folders. Plus, you can customize folders with colors and emojis, pin folders to the dock, and set default apps for file types. When working with long-running processes, background tasks show up as live activities, so that you can track Final Cut exports or the Files app moving stuff around. Other changes in iPadOS 26 include improved audio controls and the ability to select audio input source and record audio with voice isolation. The Journal app is now available on the iPad, Notes received markdown support, and Calculator now supports 3D graphing capabilities. You can learn more about iPadOS 26 in the official announcement post here.
    • That same Brave that tried to insert their own ads instead of blocked ones?
  • Recent Achievements

    • Rookie
      CHUNWEI went up a rank
      Rookie
    • Enthusiast
      the420kid went up a rank
      Enthusiast
    • Conversation Starter
      NeoToad777 earned a badge
      Conversation Starter
    • Week One Done
      VicByrd earned a badge
      Week One Done
    • Reacting Well
      NeoToad777 earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      476
    2. 2
      +FloatingFatMan
      279
    3. 3
      ATLien_0
      255
    4. 4
      Edouard
      204
    5. 5
      snowy owl
      200
  • Tell a friend

    Love Neowin? Tell a friend!