Sign in with
Sign up | Sign in
Your question

Replacing a File Via a GPO

Tags:
  • Microsoft
  • Windows
Last response: in Windows 2000/NT
Share
Anonymous
January 9, 2005 9:17:04 PM

Archived from groups: microsoft.public.win2000.group_policy (More info?)

I posted this question in the Windows 2000 General but had no response so
I'll try it here. I want to be able to create a custom "hosts" file and
replace the "hosts" on every system that's attached to my domain
automatically without having to touch each of these systems. Is there any
way that I can accomplish this via a GPO or script. If anyone has examples
or answers that would be great. Thanks very much for any help.

-Shane M. Ely

More about : replacing file gpo

Anonymous
January 10, 2005 2:53:14 PM

Archived from groups: microsoft.public.win2000.group_policy (More info?)

You could include a basic computer startup script that did this and apply it
with Group Policy. Something like this or along these lines:

del c:\windows\system32\drivers\etc\hosts
copy \\fileserver\share\hosts c:\windows\system32\drivers\etc\hosts

"Rainman777" <Rainman777@discussions.microsoft.com> wrote in message
news:E3F10FCB-578F-4D05-80FA-583DBE09D9BA@microsoft.com...
>I posted this question in the Windows 2000 General but had no response so
> I'll try it here. I want to be able to create a custom "hosts" file and
> replace the "hosts" on every system that's attached to my domain
> automatically without having to touch each of these systems. Is there any
> way that I can accomplish this via a GPO or script. If anyone has
> examples
> or answers that would be great. Thanks very much for any help.
>
> -Shane M. Ely
Anonymous
January 10, 2005 5:52:34 PM

Archived from groups: microsoft.public.win2000.group_policy (More info?)

Hi,

> You could include a basic computer startup script that did this and
> apply it with Group Policy. Something like this or along these
lines:
> del c:\windows\system32\drivers\etc\hosts
> copy \fileserver\share\hosts
c:\windows\system32\drivers\etc\hosts

This is what I do a lot as well. Startup scripts work great. However,
you do have to restart the machine to have them take affect. I use
shutdown.exe which is a cool little program you can setup in a batch
file. It logs users off with a message and then resarts the machine.

Cheers,

Lara

--
Posted using the http://www.WindowsForumz.com/ interface, at author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.WindowsForumz.com/Group-Policy-Replacing-Fil...
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.WindowsForumz.com/eform.php?p=761051
!