Search This Blog

What is NETDOM?

NETDOM is a command-line tool that allows management of Windows domains and trust relationships. It is used for batch management of trusts, joining computers to domains, verifying trusts, and secure channels.

You can use netdom to:

  • Join a computer that runs Windows XP Professional or Windows Vista to a Windows Server 2008 or Windows Server 2003 or Windows 2000 or Windows NT 4.0 domain.
    • Provide an option to specify the organizational unit (OU) for the computer account.
    • Generate a random computer password for an initial Join operation.
  • Manage computer accounts for domain member workstations and member servers. Management operations include:
    • Add, Remove, Query.
    • An option to specify the OU for the computer account.
    • An option to move an existing computer account for a member workstation from one domain to another while maintaining the security descriptor on the computer account.
  • Establish one-way or two-way trust relationships between domains, including the following kinds of trust relationships:
    • From a Windows 2000 or Windows Server 2003 or Windows Server 2008 domain to a Windows NT 4.0 domain.
    • From a Windows 2000 or Windows Server 2003 or Windows Server 2008 domain to a Windows 2000 or Windows Server 2003 or Windows Server 2008 domain in another enterprise.
    • Between two Windows 2000 or Windows Server 2003 or Windows Server 2008 domains in an enterprise (a shortcut trust).
    • The Windows Server 2008 or Windows Server 2003 or Windows 2000 Server half of an interoperable Kerberos protocol realm.
  • Verify or reset the secure channel for the following configurations:
    • Member workstations and servers.
    • Backup domain controllers (BDCs) in a Windows NT 4.0 domain.
    • Specific Windows Server 2008 or Windows Server 2003 or Windows 2000 replicas.
  • Manage trust relationships between domains, including the following operations:
    • Enumerate trust relationships (direct and indirect).
    • View and change some attributes on a trust.

Syntax

Netdom uses the following general syntaxes:

NetDom <Operation> [<Computer>] [{/d: | /domain:} <Domain>] [<Options>]
NetDom help <Operation

http://technet.microsoft.com/en-us/library/cc772217.aspx