Tip
Subject Content

171
Create trust from the command line

While you can use the graphical user interface tools to establish the trust relationship between

Windows 2000 and Windows NT4 domains, you can do this much faster using command-line

utilities, such as NETDOM.



NETDOM is a multipurpose utility that allows you to establish trusts between domains, join a

computer to a domain, remove a computer from a domain, verify the trust relationship, and more.



Here's how to establish a trust relationship between two domains using NETDOM. If you want

domain A to trust domain B, type the following command in the command prompt, where

<AdminA> is the username of the administrator in domain A, and <AdminB> is the username of

the administrator in domain B:



NETDOM trust /d:B A /add /uo:<AdminA> /po:passwordA /ud:<AdminB> /pd:passwordB /verbose



You can also build two-way trust by adding the /twoway switch:



NETDOM trust /d:B A /add /uo:AdminA /po:passwordA /ud:AdminB /pd:passwordB /verbose /twoway





NETDOM is part of Windows 2000 Support Tools, a free collection of utilities located on the

Windows 2000 CD-ROM in the Support/Tools folder.

Page 171 of 237
First Previous Next Last