Changing the Name of Windows NT Workstations and Servers

Last reviewed: May 8, 1997
Article ID: Q102476

The information in this article applies to:
  • Microsoft Windows NT operating system, version 3.1
  • Microsoft Windows NT Advanced Server, version 3.1

SUMMARY

In Windows NT, you can do the following:

  • Change the computer name of a Windows NT Advanced Server computer
  • Change the computer name of a workstation in a domain
  • Change the computer name of a server in a domain

MORE INFORMATION

Changing Computer Names of Windows NT Advanced Server Computers

In Windows NT Advanced Server domains, domain membership (whether as workstation or server) is represented by a special system and security (SAM) account on the domain and an LSA Secret Object on the workstation or server.

Both the account and the secret object contain a password that is used by the Netlogon services to set up a secure channel between the machines. Netlogon periodically changes the password (both in the Secret Object and for the account on the domain) to prevent the password from being discovered.

The account on the server is marked with a special bit (either WORKSTATION TRUST ACCOUNT or SERVER TRUST ACCOUNT). These accounts cannot be used to logon interactively, nor can they be used to set up a connection using NET USE. If this is attempted, an error will be returned, ERROR_NOLOGON_WORKSTATION_TRUST_ACCOUNT or ERROR_NOLOGON_SERVER_TRUST_ACCOUNT.

The LSA Secret Object is created by setup during the initial installation or when a workstation joins a domain. The initial password is the same as the computer name (in lowercase and truncated to 14 characters).

The SAM machine account is created by Server Manager when a workstation or server is added to the domain (or by Setup when an administratrive user name and password are specified). The password is the same as the computer name (in lowercase and truncated to 14 characters).

For Netlogon to start on a workstation or server, the passwords on the Secret Object and on the account on the domain must be the same.

Changing the Computer Name of a Workstation in a Domain

The correct way to change the computer name of a workstation in a domain is as follows:

  1. On the domain, run Server Manager to add a workstation with the new name.

  2. Choose the Network icon in Control Panel, and then leave the current domain (join a workgroup of any name).

  3. Change the computer name.

  4. Reboot the computer.

  5. Choose the Network icon in Control Panel, and then rejoin the domain.

  6. Reboot the computer.

  7. On the Domain, run Server Manager and delete the old workstation name.

Changing the Computer Name of a Server in a Domain

  1. On the domain, run Server Manager to add a server with the new name.

  2. Choose the Network icon in Control Panel, and then change the computer name.

  3. Reboot the computer.

    NOTE: If you try to skip this step, Netlogon does not start on the server.

  4. On the server, run Server Manager and choose Synchronize With Domain Controller from the Computer menu. This resets the passwords on both the account and the Secret Object to the same password.

  5. On the domain, run Server Manager and delete the old server name.


Additional query words: prodnt rename
Keywords : kbnetwork ntnetserv ntsecurity
Version : 3.1
Platform : WINDOWS


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: May 8, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.