Asked by:
Add computers to domain in bulk / mass

Question
-
Is there a way to add 500 ( or more ) computers to a domain (Windows Server 2016) using powershell or some type of script? The goal is to not have to go to each machine and manually join them to the domain. Please help.Thursday, November 9, 2017 5:14 PM
All replies
-
Yes.
Learn PowerShell: https://mva.microsoft.com/en-us/training-courses/getting-started-with-microsoft-powershell-8276
\_(ツ)_/
- Proposed as answer by PRASOON KARUNAN V Saturday, November 11, 2017 7:12 AM
Thursday, November 9, 2017 7:17 PM -
Hi,
Based on my research, I recommend you can have a try with the PowerShell DSC module xComputerManagement to achieve your goal. You may refer to the following links for details:
https://github.com/PowerShell/xComputerManagement
For more information about PowerShell DSC, please refer to the following article:
Windows PowerShell Desired State Configuration Overview
https://docs.microsoft.com/en-us/powershell/dsc/overview
If you need further help, please feel free to let us know.
Best Regards,
Albert Ling
Please remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com- Edited by Albert LingMicrosoft contingent staff Friday, November 10, 2017 6:10 AM
Friday, November 10, 2017 6:09 AM -
Googling "add computer domain powershell" turns up "Add-Computer":
Saturday, November 11, 2017 4:36 PM -
Hi,
Just checking in to see if the information provided was helpful.
Please let us know if you would like further assistance.
Best Regards,
Albert LingPlease remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.comTuesday, November 14, 2017 6:22 AM -
Yes. There are some useful answers already such as add-computer.
But I suggest you to think about domain join process as part of other process of OS Deployment, in this case joining the computer to the domain is just a sub-task. In this perspective learning and using Powershell and other solutions ConfigMgr/SCCM is extremely important.
Tuesday, November 14, 2017 7:09 AM -
Hi,
I am checking how the issue is going, if you still have any questions, please feel free to contact us.
If you resolved it using our solution, please "mark it as answer" to help other community members find the helpful reply quickly.
If you resolve it using your own solution, please share your experience and solution here. It will be very beneficial for other community members who have similar questions.
If no, please reply and tell us the current situation in order to provide further help.
Appreciate for your feedback.
Best Regards,
Albert LingPlease remember to mark the replies as an answers if they help.
If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.comThursday, November 16, 2017 8:19 AM