Join Domain after Windows 7 installation with commandline (without unattend.xml)
Hi togetheri try to join my computer after the Windows 7 installation (wihtout unattend.xml)When i start or use the netdom.exe Tool i got following error.Command: C:\Windows\system>netdom join %computername% /Domain:education.com /OU:ou=TEST,dc=education,dc=com /UserD:administrator /PasswordD:anythingError Message ===>The procedure entry point I_NetNameValidate could not be located in the dynamic link library NETAPI32.dll.I found the utility djoin.exe, but i don't know if this is the correct utility to join a computer automatic into the domain.Perhaps anybody have experience with this function and can explain the correct syntax and utility.Can I also use netdom.exe with Windows 7 or is this utility no more support on Windows 7??with best regards
September 13th, 2009 6:29am

Hi, By installing Win 7 the trust between PC an Domain has changed.You will have to change the computer nameand rejoin the computer to the domain as an Administrator after a successful joinnig and restart, thenadd youruser name and password. The netdom tool is only used with a computer that has not changed and was already registered with the Domain. Slan go foill, Paul
Free Windows Admin Tool Kit Click here and download it now
September 13th, 2009 2:39pm

Hi i want to automate this process. Which utility can i use to join the computer with a commandline String into the Domain?
September 13th, 2009 3:49pm

Hi,Netdom is used in versions of Windows before Windows 7 for command-line domain membership tasks such as joining a computer to a domain. Windows 7 instead provides the PowerShell cmdlet Add-Computer, which allows you to add a computer to a domain or workgroup: 1. Click start button, type in Powershell but DO NOT press Enter yet.2. In the list above, under "Programs" right-click on Powershell that appears above and choose "Run as Administrator" and click "Continue". 3. The syntax for the command is: Add-Computer <domain name> The cmdlet allows far more complex execution than Netdom. You can use items such as the organizational unit location of the computer account, credentials, and computer name in the command. Run the command Get-Help Add-Computer for all the syntax options. Thomas Lin
Free Windows Admin Tool Kit Click here and download it now
September 15th, 2009 8:31am

Hi i tried with the Add-Computer command in a Powershell Windows (started with Admin-Rights). Can you help me please with the correct syntax?I enter following command1. powershell (runas administrator)2. add-computer -domain education -cred education\administratorThe problem is i have to enter the password in a new windows.Where can I give the password as parameter, so the command is execute automatic without enter the passwordI search the correct syntax now for Windows 7Is it possible to automate this command with Powershell without opening a Powershell Windows before. ? I need one Command who joins the computer into the domain without any user actions and without opening powershell at first.
September 15th, 2009 7:42pm

Hi,It can be done by writing the encrypted password to a file and the reading -and converting- it from the script.Next, build the credential and pass it to Add-Computer. To do this, please refer the followling article:http://bsonposh.com/archives/338Thomas Lin
Free Windows Admin Tool Kit Click here and download it now
September 25th, 2009 1:11pm

Mike,Windows 7 and Vista both have their own NETDOM.EXE, for 32-bit and 64-bit.You have to install:Install RSAT (After you have extracted the tools): (took me awhile to find the link)http://www.microsoft.com/downloads/details.aspx?FamilyID=7d2f6ad7-656b-4313-a005-4e344e43997d&displaylang=enstart /w pkgmgr /n:%SystemDrive%\Install\RSAT\Windows6.1-KB958830-x86.xmlEnable some RSAT tools (including NETDOM)start /w pkgmgr /iu:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns;RemoteServerAdministrationTools-Roles-AD-DS;RemoteServerAdministrationTools-Roles-AD;RemoteServerAdministrationTools-Roles;RemoteServerAdministrationToolsYou will then have a "c:\windows\system32\netdom.exe" that supports the 'older' Netdom syntax.HOWEVER, IF YOU MOVE THE 'NETDOM.EXE" FROM THE 'SYSTEM32' SUB-DIR IT WILL NOT WORK???!!IT WILL JUST 'EXIT' UPON EXECUTION??BUT , if you WANT to move it, which i did. you have to do 'something' EXTRA.To whatever sub-dir you move the RSAT NETDOM.EXE to :1) FOR EXAMPLE, create a sub-dir called : %temp%\EN-US2) COPY /Y "%SYSTEMROOT%\SYSTEM32\EN-US\NETDOM.EXE.MUI" "%TEMP%\EN-USThen if you execute NETDOM.EXE from "%TEMP%" you should 'see' the familiar 'help'messages..NOTE: I have not, as of Dec 8, 2009 actually TESTED the FULL 'moved' NETDOM.EXE functionality, but WILL in the next day or so,. ALSO, someone made the comment that if it was moved' to another compouter it would not work also, I will verify that statement also.Hope this helps, as i DONT like the Powershell approach..J P Morgan james_p_morgan@hotmail.com
December 9th, 2009 6:56pm

HI JP Morganthank your very much for your detailed information.I installed Windows 7 Remote Server Administration (RSAT) und activate the following Components:start /w pkgmgr /iu:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns;RemoteServerAdministrationTools-Roles-AD-DS;RemoteServerAdministrationTools-Roles-AD;RemoteServerAdministrationTools-Roles;RemoteServerAdministrationToolsAfter this i joined a computer with the commandline (netdom join ..... ) to the domain, and it work's perfect. Did you have make a test to use netdom.exe without installing RSAT (only copy the netdom.exe and netdom.exe.mui to a temp folder?Thanks a lot for the support.with best regardsMike
Free Windows Admin Tool Kit Click here and download it now
December 11th, 2009 7:05pm

Mike,So far, as of Dec 11, 2009, i have done some limited tested, WITH NOT INSTALLING RSAT on a traget computer and running ONLY Netdom.exe 'standalone(for Vista and Windows 7 ) one for 32-bit Rsat Netdom and one for 64 bit Rsat Netdom depending on Os and 32/64 bit ver.. and have had success.I wrapped' the Various NETDOM.EXE's ( xp / xp 64 / Vista 32 / Win 7 32 /win7 64) in a AUTOIT wrapper and install to %TEMP% and build the "en-us' if Netdom requires it.So far looks good.. Execute the standalone Netdom.Exe and build Domain and OU string and User ID and Password and it worked,for Windows 7 64-bit.For Windows 7 64 Bit there are TWO NETDOM.EXE installed by Rsat , ONE in "c:\windows\ystem32" and one in "c:\windows\syswow64"I captured and moved and used the one in "c:\windows\system32" and "c:\windows\system32\en-us".Hope this helps others..J P Morgan
December 11th, 2009 7:38pm

Hi J. P. Morganthank you very much for the detailled informations and tests.
Free Windows Admin Tool Kit Click here and download it now
December 12th, 2009 8:18am

Hi J. P. Morgan, I ran into the same trouble and your solution works perfect. Thank you very much!
February 10th, 2010 3:52pm

Hi JP Morgan, Thanks, it's working fine. we have to copy only netdom.exe from system32 & netdom.exe.mui from system32/en-us folder. i have used only these two files. copied them on a remote machine & run netdom command. it's working perfectly. Dhiraj
Free Windows Admin Tool Kit Click here and download it now
March 27th, 2010 5:58pm

Hi JP Morgan. I'm a french user, and i'm not sure having understoud what you wrote. My problem is the same as yours, I wish to join a domain WITHOUt installing RSAT. I tried to copy the 2 files netdom.exe and netdom.exe.mui on an USB key, and I ran Netdom from the key on another computer where RSTA was not installed, but it did'nt work . What do you call a 'standalone Netdom ? Where do you copy the files using AutoIT ? Thank you for your answers, regards Philippe Brode
May 6th, 2010 3:24pm

I have been having trouble joining the domain also. here is a link to a VB script that i just found and will join the domain you specify. you have to have a user account that has access to add the pc to the domain also. i tried it and it actually works with no prompts or anything, its totaly automated. http://gallery.technet.microsoft.com/ScriptCenter/en-us/16535083-9ccc-48b3-943a-16d8339b60f1
Free Windows Admin Tool Kit Click here and download it now
May 24th, 2010 12:46am

$creds = get-credential; add-computer -domain "some.domain.name" -credential $creds Worked great for me in a one off situation. Of course for automation there are some other things you'd have to account for. Just be sure you use DomainName\username in the get credential box.
September 27th, 2010 2:16pm

Thx, you gave me the idea :) To automate the process of joining the domain and not to enter the credentials that I use: add-computer -domainname domain.local -credential (New-Object System.Management.Automation.PSCredential ("domain\user", (ConvertTo-SecureString "P@ssw0rd" -AsPlainText -Force)))
Free Windows Admin Tool Kit Click here and download it now
October 8th, 2010 6:05am

Has anyone been able to get this netdom.exe with Win7 32bit to work? I can get the 64bit one to work, but not the 32bit.... mark wittstock
November 16th, 2010 11:26pm

Bonjour, pour les francais il faut copier netdom.exe de system32 & netdom.exe.mui de system32/fr-FR et ca marche. MERCI A TOUS LES CONTRIBUTEURS (Thank you very much!)
Free Windows Admin Tool Kit Click here and download it now
November 30th, 2010 9:40am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics