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

    • Claim VideoProc Converter AI v7.5 ($78.90 Value) free license with this Easter giveaway by Steven Parker Claim your free license (worth $78.90) today, before the offer expires on June 18. Download a licensed copy of VideoProc Converter AI V6.4 (for Windows) for free. Equipped with AI tools for video and image enhancement, smoothness, and stabilization. Remaster low-quality videos and photos, convert, edit, compress, download, and record with GPU acceleration! Key Features of VideoProc Converter AI V7.5: AI Video Upscaling: Upscale low-res, old, grainy videos/DVDs/recordings by 400% to HD/4K for stunning visuals on larger screens. AI Image Enhancement: Upscale images and AI art to 8K/10K for better cropping, editing, printing, and sharing. AI Stabilization: Intelligently stabilize shaky GoPro/drone/camera footage with controllable cropping ratios. AI Frame Interpolation: Boost FPS from 30/60 to silky-smooth 120/240/480, or create epic slow-motion effects. 5-in-1 Video Toolkit: Convert, edit, compress, download, and record with the highest possible quality. GPU Acceleration: Expedite video processing, even on older computers. How to get it Please ensure you read the terms and conditions to claim this offer. Complete and verifiable information is required in order to receive this free offer. If you have previously made use of these free offers, you will not need to re-register. While supplies last! Download VideoProc Converter AI V7.5 ($78.90 Value, now FREE) Offered by Digiarty, view other free resources The below offers are also available for free in exchange for your (work) email: Winxvideo AI V3.0 Lifetime License for PC ($69.95 Value) FREE – Expires 6/8 Aiarty Image Enhancer for PC/Mac ($85 Value) FREE – Expires 6/8 Solutions Architect's Handbook, Third Edition ($42.99 Value) FREE – Expires 6/10 AI and Innovation ($21 Value) FREE – Expires 6/11 Unruly: Fighting Back when Politics, AI, and Law Upend [...] ($18 Value) FREE - Expires 6/17 SQL Essentials For Dummies ($10 Value) FREE – Expires 6/17 Continuous Testing, Quality, Security, and Feedback ($27.99 Value) FREE – Expires 6/18 VideoProc Converter AI v7.5 for FREE (worth $78.90) – Expires 6/18 Macxvideo AI ($39.95 Value) Free for a Limited Time – Expires 6/22 The Ultimate Linux Newbie Guide – Featured Free content Python Notes for Professionals – Featured Free content Learn Linux in 5 Days – Featured Free content Quick Reference Guide for Cybersecurity – Featured Free content We post these because we earn commission on each lead so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. Other ways to support Neowin The above deal not doing it for you, but still want to help? Check out the links below. Check out our partner software in the Neowin Store Buy a T-shirt at Neowin's Threadsquad Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: An account at Neowin Deals is required to participate in any deals powered by our affiliate, StackCommerce. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through the branded deals site.
    • Download Continuous Testing, Quality, Security, and Feedback eBook (worth $27.99) for free by Steven Parker Claim your complimentary eBook worth $18 for free, before the offer ends on June 18. Organizations struggle to integrate and execute continuous testing, quality, security, and feedback practices into their DevOps, DevSecOps, and SRE approaches to achieve successful digital transformations. This book addresses these challenges by embedding these critical practices into your software development lifecycle. Beginning with the foundational concepts, the book progresses to practical applications, helping you understand why these practices are crucial in today’s fast-paced software development landscape. You’ll discover continuous strategies to avoid the common pitfalls and streamline the quality, security, and feedback mechanisms within software development processes. You’ll explore planning, discovery, and benchmarking through systematic engineering approaches, tailored to organizational needs. You’ll learn how to select toolchains, integrating AI/ML for resilience, and implement real-world case studies to achieve operational excellence. You’ll learn how to create strategic roadmaps, aligned with digital transformation goals, and measure outcomes recognized by DORA. You’ll explore emerging trends that are reshaping continuous practices in software development. By the end of this book, you’ll have the knowledge and skills to drive continuous improvement across the software development lifecycle. How to get it Please ensure you read the terms and conditions to claim this offer. Complete and verifiable information is required in order to receive this free offer. If you have previously made use of these free offers, you will not need to re-register. While supplies last! Download Continuous Testing, Quality, Security, and Feedback (worth $27.99) for free Offered by Packt, view other free resources The below offers are also available for free in exchange for your (work) email: Winxvideo AI V3.0 Lifetime License for PC ($69.95 Value) FREE – Expires 6/8 Aiarty Image Enhancer for PC/Mac ($85 Value) FREE – Expires 6/8 Solutions Architect's Handbook, Third Edition ($42.99 Value) FREE – Expires 6/10 AI and Innovation ($21 Value) FREE – Expires 6/11 Unruly: Fighting Back when Politics, AI, and Law Upend [...] ($18 Value) FREE - Expires 6/17 SQL Essentials For Dummies ($10 Value) FREE – Expires 6/17 Continuous Testing, Quality, Security, and Feedback ($27.99 Value) FREE – Expires 6/18 VideoProc Converter AI v7.5 for FREE (worth $78.90) – Expires 6/18 Macxvideo AI ($39.95 Value) Free for a Limited Time – Expires 6/22 The Ultimate Linux Newbie Guide – Featured Free content Python Notes for Professionals – Featured Free content Learn Linux in 5 Days – Featured Free content Quick Reference Guide for Cybersecurity – Featured Free content We post these because we earn commission on each lead so as not to rely solely on advertising, which many of our readers block. It all helps toward paying staff reporters, servers and hosting costs. Other ways to support Neowin The above deal not doing it for you, but still want to help? Check out the links below. Check out our partner software in the Neowin Store Buy a T-shirt at Neowin's Threadsquad Subscribe to Neowin - for $14 a year, or $28 a year for an ad-free experience Disclosure: An account at Neowin Deals is required to participate in any deals powered by our affiliate, StackCommerce. For a full description of StackCommerce's privacy guidelines, go here. Neowin benefits from shared revenue of each sale made through the branded deals site.
    • I can't tell which of them is the ventriloquist and which is the dummy...
    • Yeah, I can see that. I would hope that an xbox branded handheld could bridge the legal gap. Maybe to help get around the legal definitions of the differences between Windows and xbox, they could just make it dual-boot. That would be kind of shame because I'm sure an xbox app could do all the same things, but if you have to totally shutdown windows and start it up in "xbox mode" then perhaps the game studios would be more okay with that...then down the road maybe a hot new update removes the requirement to reboot to change modes :-)
    • You will soon be able to book hotels directly through the PayPal app by David Uzondu PayPal is getting into the hotel booking business, thanks to a new partnership with the booking technology company Selfbook, announced today. The plan will stick a hotel booking section right inside the PayPal app, letting millions of users find and pay for rooms from Selfbook's partner hotels. If you have never heard of the company, Selfbook is a booking and payment platform that is usually integrated into a hotel's website to make the often-annoying reservation process a lot easier. Its tech helps hotels get more people booking right on their own site by offering payment options people actually use, like digital wallets. Now, instead of just living on individual hotel sites, Selfbook's network will be featured in PayPal's Offers tab. For hotels, this gives them a direct line to a huge audience of logged-in users. PayPal also says that this partnership will help bring travel booking "into the age of agentic AI," with the help of Perplexity, the conversational AI-powered search engine. The idea is that you will be able to just chat with an AI about a trip, and when it is time to book, you can pay for your hotel right there in the conversation. Selfbook provides the plumbing to make the booking happen, while PayPal and Venmo will show up as the payment methods. According to the PayPal announcement: To handle the money side of things, Selfbook is moving all of its direct card processing over to PayPal's Enterprise Payments platform. For travelers, this just means more choice at checkout. People booking at a hotel that uses Selfbook will see options to pay with PayPal or Venmo, along with "Buy Now, Pay Later" plans for splitting up the cost of a stay.
  • Recent Achievements

    • 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
    • Reacting Well
      eric79XXL earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      471
    2. 2
      +FloatingFatMan
      277
    3. 3
      ATLien_0
      246
    4. 4
      snowy owl
      204
    5. 5
      Edouard
      190
  • Tell a friend

    Love Neowin? Tell a friend!