Solved

Hosts files

Posted on 2008-06-14
4
204 Views
Last Modified: 2010-04-07
Is there a way via script, batch file, etc. to edit hosts files on computers in a domain?  I need to add information to 100+ PCs and rather than send out directions I would rather just 'script it'.

AD integrated
Server 2003
Windows XP
0
Comment
Question by:xmouser
  • 2
  • 2
4 Comments
 

Author Comment

by:xmouser
ID: 21784542
The obvious choice is creating one and emailing it out.  However, some users might not have the ability to overwrite files.
0
 
LVL 18

Accepted Solution

by:
Wakeup earned 500 total points
ID: 21784544
I dont want to take credit for this one, but take a look at this:
http://www.mvps.org/winhelp2002/hosts.htm

This could be a good start.  The batch files are in place....just modify the text to what you would like.  I am not all too familiar with scripting, so not sure how to make it a script, but this is a great place to start if you would could use a batch file instead.

you can covert batch files to exe....dont know if this tool is helpful.  I've never used nor heard of it till now doing a tad bit of research....
http://www.softsland.com/commandline.html

Anyway let me know if you have any more questions etc.  I use MVP's Hosts file to help block the adds from displaying.  So even if you go to certain webpages like EE for example and they have the advertisments, those ads come up blank on the screen.  you cant click it or use it.  Works good! :)  very helpful for those who do not always know what they are clicking!
0
 

Author Comment

by:xmouser
ID: 21784709
Thanks
0
 
LVL 18

Expert Comment

by:Wakeup
ID: 21785903
Cool...I hope you will be able to implement something like that for your computers!  Good luck, if you have any more questions, let me know!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Powershell Active Directory Attribute LVR Metadata 3 16
DNS Server 7 57
Company website 6 29
How to transfer domain from current registrar to GoDaddy 3 22
I've written instructions for one router type, but this principle may be useful for others of the same brand and even other brands of router. Problem: I had an issue especially with mobile devices that refused to use DNS information supplied via…
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

791 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