Windows NT NBTSTAT -R vs. LAN Manager ADDNAME

Last reviewed: March 25, 1997
Article ID: Q107060
The information in this article applies to:
  • Microsoft Windows NT operating system version 3.1
  • Microsoft Windows NT Advanced Server version 3.1
  • Microsoft Windows NT Server version 4.0
  • Microsoft Windows NT Workstation version 4.0

SUMMARY

The ADDNAME utility that ships with LAN Manager TCP/IP allows you to enter LAN Manager NetBIOS names and their IP addresses into the TCP/IP name cache without modifying the LMHOSTS file. The same functionality is available in Windows NT by the NBTSTAT utility.

To add a new NetBIOS name IP address in Windows NT, do the following:

  1. Edit the file <winnt root>\SYSTEM32\DRIVERS\ETC\LMHOSTS.

  2. Add the new IP address and NetBIOS name.

  3. Put #PRE at the end of the line if you want the address to be cached into memory. Otherwise, Windows NT will search the LMHOSTS file if the name is not found in the cache which could take longer.

  4. Run NBTSTAT -R.

The -R parameter rereads the LMHOSTS file and adds #PRE lines into the name cache.

REFERENCES

Windows NT "TCP/IP Reference"


Additional query words: prodnt NTAS LM PING
Keywords : kbnetwork NTSrvWkst nttcp
Version : 3.1 4.0
Platform : WinNT


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.