Link to home
Start Free TrialLog in
Avatar of abhijitm00
abhijitm00Flag for United States of America

asked on

Add machine to domain

Hi Experts,

As part of an imaging process using a third party utility I am able to create a computer name and login as local admin. I need to run a batch script which will add the machine to the domain using this new computer name. Can someone provide examples that have worked for them?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of abhijitm00

ASKER

Thanks David. Is there a way this can be run in a batch script? I can only use batch scripts
You can use NETDOM.exe JOIN from a batch file
User generated image
Thanks but netdom is not recognized on Windows 10
Currently I have Restriction Policy set to Restricted. How can I allow the above Powershell to run with no restriction just for it?

Thanks
That screenshot is from Windows 10