Answered by:
pc's are auto join to domain

Question
-
Hi fnd's,
I have N number's of pc's in our branch these all are have different ip's means 10.20.40.50....192.168.1.1........can I join these types of ip's to communicate for auto join to domain
Monday, November 2, 2015 2:36 PM
Answers
-
Hi,
The “Add-Computer” command in PowerShell can also be used for automatically domain join:
1. Create a txt file with all the computer names listed in it.
2.Run Add-Computer –ComputerName (Get-Content filename.txt) -Domain domainname –Credential domainname\username –Restart
Check this article for more about this command:
https://technet.microsoft.com/en-us/library/hh849798.aspx
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
- Proposed as answer by Wendy Jiang Wednesday, November 11, 2015 1:57 AM
- Marked as answer by Ethan HuaMicrosoft contingent staff Wednesday, November 25, 2015 8:33 AM
Tuesday, November 3, 2015 8:48 AM
All replies
-
Yes you can, you could use something like the script information below, computers.txt is the computername.
@echo off
FOR /f %%i in (C:\Computers.txt) DO (
netdom join /d:domain.local %%i /OU:OU=Test,DC=domain,DC=local
)Monday, November 2, 2015 5:58 PM -
I did that procedure for same ip addresses and also I got solution,but I want different ip addresses add to same domain.......is it possible????can u send me the procedure?Tuesday, November 3, 2015 7:06 AM
-
Hi,
The “Add-Computer” command in PowerShell can also be used for automatically domain join:
1. Create a txt file with all the computer names listed in it.
2.Run Add-Computer –ComputerName (Get-Content filename.txt) -Domain domainname –Credential domainname\username –Restart
Check this article for more about this command:
https://technet.microsoft.com/en-us/library/hh849798.aspx
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
- Proposed as answer by Wendy Jiang Wednesday, November 11, 2015 1:57 AM
- Marked as answer by Ethan HuaMicrosoft contingent staff Wednesday, November 25, 2015 8:33 AM
Tuesday, November 3, 2015 8:48 AM -
is it possible????
Not sure about your network configuration, but as long as your clients can connect to a domain controller, you should be able to add these machines to domain.
Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.
Thursday, November 19, 2015 9:16 AM