This article was previously published under Q175025
The information in this article provides a way to build a trustrelationship between two domains from a command line. To do this, use theNETDOM command line utility that comes with the Windows NT 4.0 Resource KitSupplement 2.
CAUTION: The method described in this article has not been extensivelytested in large installations. Microsoft cannot guarantee that modificationof domains as recommended herein will accomplish the objective described inthis article under all circumstances and in all configurations.
Suppose MYMASTERDOM is the name of the master domain (that is, the trusteddomain) and MYRESOURCEDOM the name of the resource domain (the trustingdomain) that will trust the master domain.
With NETDOM, you can build the trust relationship from the command line. Todo this, perform the following steps:
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 can also build a trust relationship and complete the operationsabove all at once. If you have an administrator access to the resourcedomain, both of the following commands builds the trust relationshipin one step (note that these commands should each appear on a single line):
NETDOM MASTER MYMASTERDOM <trust password> /TRUST
(If you need to enter an administrator account for the resource domain)