Tuesday, August 5, 2008

Lmhosts to Resolve Netbios Name Resolution

Bulletin: 050808

Software Effected:
ServerMigrator, AccessReporter, PasswordCopy

Issue:
When I go to add computers from the domain, the available computers drop down window is empty

Solution:
Winzero software products that interact with computers rely on the browser service for resolution.
If the available computers - servers drop down is empty then the API cannot resolve computers from the browser list.

To remedy this situation quickly, we recommend the use of lmhosts files for each computer that interacts with the Winzero software.

Lmhosts file creation
The Lmhosts file is a local text file that maps Internet Protocol (IP) addresses to NetBIOS names of remote computers to communicate over the TCP/IP protocol.

The lmhosts file is located in the Windows or WINNT /System32/Drivers/ETC directory. By default there is a sample file called lmhosts.sam and must be renamed Lmhosts without an extension.

The layout of the lmhosts file is:
IPaddressTABComputernameTAB#PRETAB#DOM:DomainName

There is one entry perline for each computer and a TAB between each item. We recommend adding the PDC/PDC Emulator and the domain entry as well in the format:

IPaddressTABComputer1TAB#PRETAB#DOM:DomainName
IPaddressTABComputer2TAB#PRETAB#DOM:DomainName
IPaddressTABPDCTAB#PRETAB#DOM:DomainName
IPaddressPDCTAB"DomainNameTAB\0x1b"TAB#PRE

Sample Lmhosts File

192.168.0.1 DC1 #PRE #DOM:WINDEV
192.168.0.25 WKS1 #PRE #DOM:WINDEV
192.168.0.5 SERVER1 #PRE #DOM:WINDEV
192.168.0.1 "WINDEV \0x1b" #PRE

Note The domain name in this entry is case sensitive. Make sure that you use uppercase characters for the domain and computer names. If you use lowercase characters for the domain name, NetBT does not recognize the name.

To reload of the NBT Remote Cache Name Table, save the file as Lmhosts without an extension.
Launch the CMD prompt and use the command: nbtstat -R
To display the NBT Remote Cache Name Table use the command: nbtstat -c

Friday, August 1, 2008

ServerMigrator Domain Name Resolution

Bulletin: 010808

Software Effected:
ServerMigrator version 5.09 and earlier

Issue:
I am evaluating ServerMigrator to migrate file and rights from an existing 2000 server to 2008. The destination server is a DC as is the source server. When I try to add a domain in ServerMigrator, I get a message "No Domains Found.! Check Network Firewalls, Router netBios Broadcasts, DNS or Wins"

Solution:
We have seen this issue starting to appear recently at the server level. It has to do with Netbios name resolution of the domain name and has been added in a recent Microsoft Update

We have two ways around this until a fix is added to ServerMigrator v5.10 it has been add to our other tools when Vista came out that involved workstations.

In the working directory of ServerMigrator drive:\Winzero\ServerMigrator there is a file called Domains.Add

With NotePad enter the Netbios domain or domain names in capital letters, one entry per line and save the file.

At this point Select Configuration from the menu and Select Add/Remove Servers from the popup window select the domain from the drop down box and you should get a list of servers to add.

If the Available Servers window is empty then you will need to add a lmhost file for name resolution.