Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Push a HOSTS file via Group Policy

1,177 views
Skip to first unread message

Jeff

unread,
Jun 19, 2007, 3:27:00 PM6/19/07
to
Hello all,

I would like to push out a HOSTS file to all clients on our domain using
Group Policy. I was going to write a simple batch file and set it up to be
copied to all machines, much like I had done with the DST 2007 update for my
win2k clients. Does anyone see a problem with this or is there a better way
to do it?

--
Thanks, Jeff

Florian Frommherz

unread,
Jun 19, 2007, 3:57:17 PM6/19/07
to
Howdie Jeff!

You can do that pretty good with a computer startup script. That should
work out for that purpose.

cheers,

Florian
--
eMail: prename [at] frickelsoft [dot] net.
blog: http://www.frickelsoft.net/blog.

Norbert Fehlauer [MVP]

unread,
Jun 19, 2007, 4:39:02 PM6/19/07
to
Florian Frommherz wrote:
Hi,

> You can do that pretty good with a computer startup script. That
> should work out for that purpose.

Nobody dare to ask: Hosts-file? ;)

Bye
Norbert

--
Dilbert's words of wisdom #19: Am I getting smart with you? How would
you know?

briangibb

unread,
Oct 21, 2009, 11:48:55 AM10/21/09
to
Did you ever get this figured out. I'm able to delete a hosts file, but not write one out. I don't want to use a batch file, because I only want to write to the file, when we need to. Better yet, I would like to be able to append to it, instead of overwrite it.

Brian

Jef wrote:

Push a HOSTS file via Group Policy
19-Jun-07

Hello all,

I would like to push out a HOSTS file to all clients on our domain using
Group Policy. I was going to write a simple batch file and set it up to be
copied to all machines, much like I had

Previous Posts In This Thread:

On Tuesday, June 19, 2007 3:27 PM
Jef wrote:

Push a HOSTS file via Group Policy
Hello all,

I would like to push out a HOSTS file to all clients on our domain using
Group Policy. I was going to write a simple batch file and set it up to be
copied to all machines, much like I had

On Tuesday, June 19, 2007 3:57 PM
Florian Frommherz wrote:

Howdie Jeff!
Howdie Jeff!

Jeff wrote:

You can do that pretty good with a computer startup script. That should
work out for that purpose.

cheers,

Florian
--
eMail: prename [at] frickelsoft [dot] net.
blog: http

On Tuesday, June 19, 2007 4:39 PM
Norbert Fehlauer [MVP] wrote:

Re: Push a HOSTS file via Group Policy
Florian Frommherz wrote:
Hi,


Nobody dare to ask: Hosts-file? ;)

Bye
Norbert

--
Dilbert's words of wisdom #19: Am I getting smart with you? How would
you know?

EggHeadCafe - Software Developer Portal of Choice
ASP.NET AJAX Automatically Saving Web Form Data
http://www.eggheadcafe.com/tutorials/aspnet/e4852489-0528-40df-85ce-959b56d814cc/aspnet-ajax-automaticall.aspx

Florian Frommherz [MVP]

unread,
Oct 21, 2009, 12:48:03 PM10/21/09
to
Howdie!

Brian Gibb schrieb:


> Did you ever get this figured out. I'm able to delete a hosts file, but not write one out. I don't want to use a batch file, because I only want to write to the file, when we need to. Better yet, I would like to be able to append to it, instead of overwrite it.

A well engineered script could do that.

Other than that, Group Policy Preferences have a file copy facility as
well as an option to only process a setting once and then not re-enforce
it - appending is not an option as far as I know.

Cheers,
Florian
--
Microsoft MVP - Group Policy


eMail: prename [at] frickelsoft [dot] net.

blog: http://www.frickelsoft.net/blog.
Maillist (german): http://frickelsoft.net/cms/index.php?page=mailingliste

Ace Fekay [MCT]

unread,
Oct 21, 2009, 1:35:04 PM10/21/09
to
"Brian Gibb" wrote in message news:200910211...@saintjosephri.com...


Not sure why you want to use a hosts file when DNS can do the trick for you.
May I ask why you want to use a hosts file?

Ace

Jonathan de Boyne Pollard

unread,
Jan 17, 2010, 9:36:12 PM1/17/10
to

Did you ever get this figured out.

As M. Fekay observes, the original poster probably figured out that the domain controller came with a fully fledged DNS server, capable of everything that can be done by having the server push hosts files onto clients, and more besides.  After all, rendering obsolete a system of copying hosts files around is partly why the world gained DNS in the first place …

0 new messages