Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Active Directory > Push a HOSTS file via Group Policy

Reply
Thread Tools Display Modes

Push a HOSTS file via Group Policy

 
 
Jeff
Guest
Posts: n/a

 
      06-19-2007
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
 
Reply With Quote
 
 
 
 
Florian Frommherz
Guest
Posts: n/a

 
      06-19-2007
Howdie Jeff!

Jeff wrote:
> 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?


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.
 
Reply With Quote
 
Norbert Fehlauer [MVP]
Guest
Posts: n/a

 
      06-19-2007
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?
 
Reply With Quote
 
Brian Gibb
Guest
Posts: n/a

 
      10-21-2009
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 usin
Group Policy. I was going to write a simple batch file and set it up to b
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 usin
Group Policy. I was going to write a simple batch file and set it up to b
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 shoul
work out for that purpose

cheers

Floria
-
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? ;

By
Norber

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

EggHeadCafe - Software Developer Portal of Choice
ASP.NET AJAX Automatically Saving Web Form Data
http://www.eggheadcafe.com/tutorials...omaticall.aspx
 
Reply With Quote
 
Florian Frommherz [MVP]
Guest
Posts: n/a

 
      10-21-2009
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
 
Reply With Quote
 
Ace Fekay [MCT]
Guest
Posts: n/a

 
      10-21-2009
"Brian Gibb" wrote in message news:...



> 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...omaticall.aspx



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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Group Policy software Push out Rich Martinez (RRCC) Windows 64 Bit 5 07-25-2007 08:34 PM
Push additions via group policy? DevilsPGD Virtual PC 1 02-20-2007 04:07 AM
Re: using AD group policy to push a trusted zone Jorge Silva Active Directory 0 01-22-2007 07:09 PM
Using Group policy to push out critical updates lvaldes Active Directory 2 04-12-2004 08:14 PM
Re: Push Folder Rights from Group Policy ? Zul Active Directory 1 04-05-2004 08:27 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59