Information Technology Reference
In-Depth Information
3.
Right-click Active Registrations, and select Import Lmhosts File.
4.
Browse to the location of your Lmhosts file and select Open. (By default, the Lmhosts
file is located in %SystemRoot%\system32\drivers\etc .)
Using a Command-Line Interface
You can import data from your Lmhosts file using the following command:
> netsh wins server init import [File=]" ImportFile "
File is a required parameter that specifies the path to the Lmhosts file that contains the
records to be imported into the WINS database.
For example, use this command to import the host information from the ListOfAddresses
file located in c:\temp :
> netsh wins server init import file="c:\temp\ListOfAddresses"
How It Works
Adding records to the WINS database is a fairly straightforward matter (see Recipe 2-8), but it
can be a time-consuming and error-prone inconvenience when multiple entries are needed.
For this reason, Windows provides functionality to import these entries from a Lmhosts text file.
The minimum syntax for an entry in the Lmhosts file is as follows:
IP Address DeviceName
For example:
192.168.0.2 MyServer
Each entry should be placed on its own line in the Lmhosts file. Do not precede the line
with the pound ( # ) symbol, as this will flag the line as a comment rather than an actual entry
or command.
See Also
￿
Microsoft KB 180094 and 314108: “How to Write an LMHOSTS File for Domain Valida-
tion and Other Name Resolution Issues.” These articles describe the Lmhosts syntax.
￿
Microsoft KB 180099: “Troubleshooting LMHOSTS Name Resolution Issues.” This article
describes steps to take when name resolution fails.
2-11. Setting General Replication Properties and Automatic
Partner Configuration
Problem
You want to set general or advanced global properties, or both, for replication partners.
Search WWH ::




Custom Search