Netdom.exe is a command line tool that is built into Windows Server 2008 and Windows Server 2008 R2. It is available if you have the Active Directory Domain Services (AD DS) server role installed. It is also available if you install the Active Directory Domain Services Tools that are part of the Remote Server Administration Tools (RSAT).

NETDOM is not installed by default in Windows 2000/XP/2003 so you have to install it through the Support Tools /Resource Kit to get your hand on it, also you have to install the correct version of NETDOM specified for your operating system.

Also NETDOM is not installed by default on Windows 7 yet you can get it by installing the Remote Server Administration Tools (RSAT) via this link: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7D2F6AD7-656B-4313-A005-4E344E43997D&displaylang=en
Once you done with the installation navigate to Control Panel ==> Programs and Features ==> Turn Windows features on or off. Then In the tree view navigate to Remote Server Administration Tools ==> Role Administration Tools ==> AD DS and AD LDS Tools and select AD DS Tools.

NETDOM This handy utility enables administrators to achieve what would take them an amount of resources, time and clicks using the GUI method. Administrators can manage Active Directory domain and trust relationships using NETDAM from the command line.

Admins with UNIX habits prefer the use of command line interface rather than the GUI way.. it is also powerful tool for Administrating the server remotely.

In this post I will discus one of the many ways we can use NETDOM by joining a Windows 7 machine into a domain using NETDOM.

Joining Windows 7 to a domain using NETDOM:

Assuming you already installed RSAT and NETDOM is functioning now on the local Windows 7 machine:

  1. Logon into your Windows 7 with a user that has Administrative credentials.
  2. Open command prompt window (Windows Command Processor) by clicking: Start (Windows logo) ==> All programs. Navigate through start menu until you get to the Windows Command Processor then click on it. Alternatively use the keyboard by pressing (Windows logo + R) then type in the RUN window cmd and press Enter.
  3. Type the following ONE line, make replacement where appropriate (Change the red colored syntax with yours):
netdom join %computername% /domain:DOMAIN.COM /userd:DOMAIN\administrator /passwordd:P@sswoRD

Where:

  • computername: The name of the Windows 7 machine
  • DOMAIN.COM; the domain (That this machine will join)
  • DOMAIN\administrator; The domain administrator’s account associated with the domain name.
  • P@sswoRD; The domain administrator account’s password.

Tip:
ONLY Windows 7 Professional, Ultimate or Enterprise editions can be joined to a domain. Windows 7 Home version CAN NOT.

For more information about NETDOM refer to:

http://technet.microsoft.com/en-us/library/cc737599%28WS.10%29.aspx

Share

Related posts:

  1. Promote Windows Server 2008 into a Domain controller
  2. Windows activation problem – code 0x8007232B
  3. Installing IIS7 on Windows Vista/ Windows Server 2008
  4. Windows Server 2008 Hardware Requirements
  5. Installing DNS server on a standalone or member server
  6. Change UAC behavior of the elevation prompt for administrators