Join computer to domain from command line
Sunday, October 4, 2009
Leave a Comment
In this post it has been explained how to join a machine to a domain using Graphical User Interface(GUI). Some times we may have to do this from some script or programatically. We can use the tool Netdom.exe in such scenarios.
Below is the command we need to run for joining a machine to a domain.
netdom.exe join %computername% /domain:DomainName /UserD:DomainName\UserName /PasswordD:Password
Here Username and Password should be of a domain user having permissions to join a computer to the domain.
Netdom.exe can be downloaded from here
0 comments »
Leave your response!