Replace Users Host File at logon

  • Thread starter Thread starter Kenneth Keeley
  • Start date Start date
K

Kenneth Keeley

Hi,
How can I make the users logon script replace the exsisting Host file
with a new host file if it has changed each time the user logs on to the
computer.

Thanks
Kenneth
 
Why not just replace it every time they log on? Should be a quick operation
and avoids having to do a check first....
 
Hank Arnold said:
Why not just replace it every time they log on? Should be a quick
operation and avoids having to do a check first....

Or get rid of it altogether and use your DNS.
(as the post was made to an AD newsgroup, I'm assuming that a DNS is in
place......)
 
use xcopy /d
but a normal user doesn't have enough permissions to overwrite
the hosts file.
use a startup script instead.
 
Or get rid of it altogether and use your DNS.
the microsoft dns server seems to reply too slow for
some (non-microsoft) applications.

or the user works on a notebook over vpn without an
internal dns server.

so the workaround with the hosts file is still quite common.
 
Dominic Wyss said:
the microsoft dns server seems to reply too slow for
some (non-microsoft) applications.

First I've heard of that problem. Which applications have you heard of it
causing problems with?
or the user works on a notebook over vpn without an
internal dns server.

He's posted to an Group Policy newsgroup. Group Policy requires AD and you
can't have AD without an internal DNS.
 
Kenneth said:
Hi,
How can I make the users logon script replace the exsisting Host file
with a new host file if it has changed each time the user logs on to the
computer.

Thanks
Kenneth
Under the tcp/ip properties of the NIC card goto the advanced tab then
to WINS tab and select import LMHOST file. Select path and reboot.

hth,
Chad
 
Under the tcp/ip properties of the NIC card goto the advanced tab then
to WINS tab and select import LMHOST file. Select path and reboot.

How does that relate to the OP's question?
 
Hi,
How can I make the users logon script replace the exsisting Host file
with a new host file if it has changed each time the user logs on to the
computer.

Thanks
Kenneth
Our logon script just copies down each time the user logs on.. works
fairly well too
 
Back
Top