Update Host File

Posted on 2005-04-20
Last Modified: 2010-04-14
Hello all,
 I'm running Windows Server 2000 and I'm needing to update a particular set of pc's in a OU.  My question is can I create a new policy for that OU that will make changes to every pc's host file in that OU?

If so, how?
Question by:thcit
    LVL 8

    Accepted Solution

    you could add a batch to the startup scripts to copy the hosts file over from a networked location, replacing the old HOSTS files....
    LVL 14

    Expert Comment

    If you want to change the hosts file on a workstation, and these workstations are in an OU, then you must be on an AD domain.  If you're on an AD domain, you must be running DNS on your network.  It is far better (and far simpler) to add A or CNAME records to DNS in one place than changing hosts files on multiple workstations.

    What effect are you hoping to accomplish?  Modifying hosts files on workstations is a solution; what is it intended to solve?  With that information, I'm sure we can come up with the right answer.
    LVL 3

    Author Comment

    Sorry for the late response guys, I had to go out of town.

    What I am needing accomplished is the 5 pc's I have in the OU to query their local hosts file first for a net name.  Reason being is that the host name that is being queried registers itself in the DNS as an address that only available when the connect via VPN.  And this particular system is available to them 24/7 on their local network.  My thought is to always lookup the host name in the host file in order to connect to the static IP of the desired system at all times and ignore the dynamic IP the desired system uses when connected via vpn.  Does that make sense?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now