Saturday, 31 May 2008

Adding Computers to domain

you know the saying there are multiple solutions to a given problem and simpler the better, how about doing it the dos way, simple and easy, found this simple way creating computer object in Active Directory.

FOR /F “tokens=*” %%a in (server.txt) do dsadd computer cn=%%a,ou=”New Computer”,ou=Maintenance,ou=new computer,dc=contoso,dc=org -desc “Reserved for new Project - “
pause

No comments: