background: The company will generally have a lot of departments, the General AD OU architecture will follow the structure of the company department to go. When the company has a lot of OU in the ad, the PC joined the domain when the computer will go into the BUILTIN computer container, computer objects once more, computer containers will accumulate together. is there a way to get the computer to automatically go to an OU? Because there will be a lot of computers in the whole domain, I can't create accounts for each computer.
Method:
You can set up the corresponding computer account in the appropriate OU beforehand, so that when the client joins the domain, it discovers in the ad database
Now that you have your own account, you won't be able to create an account again.
Based on my experience, you can use the netdom command to join a computer to a specified OU. The tool is included in the Support/tool folder on the installation CD of Windows Server.
For example, if you want to join an ABC workgroup computer to a domain controller on ADDC01 in the dengw.com domain, the full Netdomjoin command line is in the OU named Test:
netdom join ABC /domain:dengw/addc01/ou:ou=test,dc=dengw,dc=com/userd:dengw/administrator/passwordd:*/ usero:administrator/passwordo:*
Reference Link: https://support.microsoft.com/zh-cn/kb/266651
This article is from the "Kaleidoscope K" blog, be sure to keep this source http://dengw.blog.51cto.com/7143894/1794883
To have the computer automatically join a specified OU