Automate an LMhost file download

G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.setup (More info?)

Hello all,

Is there a way to automate a download of a changed lmhost file so all the
people who log into the network always has the most recent lmhost file so we
don't have to go to all the machines and download a new lmhost file when a
machine name changes?

Thanks,

Gale
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.setup (More info?)

Distribute it thru the login script, but why don't you use WINS and DHCP
servers?
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.setup (More info?)

We do have DHCP running, but we have a program that only works if the IP
address is specific.

Gale
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsnt.setup (More info?)

Add a line into your login script to do this.
You may need to reboot for changes to take effect!
Make sure the logon user has rights to overwrite this file
or run it as the NT System account during startup.
E.g.

XCOPY \\servername\share\lmhosts
%SYSTEMROOT%\system32\drivers\etc\lmhosts /Y /R 2>
%systemroot%\login-errorlog.txt

WINS is a better way of tracking IP to Hostnames
automatically. It's is far more robust that using LMHOSTS.
Make sure you DHCP server informs the clients of the WINS
Server address. If you are using Windows 2000 Server you
can also specify that the Windows NT clients utilize DNS to
resolve host names as well.


>-----Original Message-----
>Hello all,
>
>Is there a way to automate a download of a changed lmhost
file so all the
>people who log into the network always has the most recent
lmhost file so we
>don't have to go to all the machines and download a new
lmhost file when a
>machine name changes?
>
>Thanks,
>
>Gale
>
>
>.
>