Replace Users Host File at logon

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
 
H

Hank Arnold

Why not just replace it every time they log on? Should be a quick operation
and avoids having to do a check first....
 
A

Andrew Mitchell

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......)
 
D

Dominic Wyss

use xcopy /d
but a normal user doesn't have enough permissions to overwrite
the hosts file.
use a startup script instead.
 
D

Dominic Wyss

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.
 
A

Andrew Mitchell

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.
 
C

Chad Mahoney

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
 
M

Michael Bednarek

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?
 
N

NoneOfBusiness

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top