How to build and reset a trust relationship from a command line

Article translations Article translations
Article ID: 175025 - View products that this article applies to.
This article was previously published under Q175025
Expand all | Collapse all

SUMMARY

The information in this article provides a way to build a trust relationship between two domains from a command line. To do this, use the NETDOM command line utility that comes with the Windows NT 4.0 Resource Kit Supplement 2.

CAUTION: The method described in this article has not been extensively tested in large installations. Microsoft cannot guarantee that modification of domains as recommended herein will accomplish the objective described in this article under all circumstances and in all configurations.

MORE INFORMATION

Suppose MYMASTERDOM is the name of the master domain (that is, the trusted domain) and MYRESOURCEDOM the name of the resource domain (the trusting domain) that will trust the master domain.

With NETDOM, you can build the trust relationship from the command line. To do this, perform the following steps:

  1. On the master domain, use the following command to create a resource computer account (note that this command should appear on a single line):

    NETDOM /Domain:MYMASTERDOM RESOURCE MYRESOURCEDOM <trust password> /ADD
  2. On the resource domain, use the following command to establish a trust with the master domain (note that this command should appear on a single line):

    NETDOM /Domain:MYRESOURCEDOM MASTER MYMASTERDOM <trust password> /TRUST
NETDOM can also build a trust relationship and complete the operations above all at once. If you have an administrator access to the resource domain, both of the following commands builds the trust relationship in one step (note that these commands should each appear on a single line):

NETDOM MASTER MYMASTERDOM <trust password> /TRUST

-or-

(If you need to enter an administrator account for the resource domain)

NETDOM /Domain:MYRESOURCEDOM /User:MYRESOURCEDOM\<administrator user> /Password:<administrator password> MASTER MYMASTERDOM <trust password> /TRUST

You can run the second command above from the master domain primary domain controller (PDC) or from any Windows NT computer as soon as you have an administrator access to the master domain.

For more information on the NETDOM command, refer to the Windows NT 4.0 Resource Kit documentation.

Properties

Article ID: 175025 - Last Review: November 1, 2006 - Revision: 1.2
APPLIES TO
  • Microsoft Windows NT Server 4.0 Standard Edition
  • Microsoft Windows NT Workstation 4.0 Developer Edition
Keywords: 
kbhowto KB175025

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com