Create User via net user command

  • Thread starter Thread starter anonymous
  • Start date Start date
A

anonymous

Hi y'all ,

Im trying to create a batch file which will add a
group of users from different domains into my domain
I read the "http://support.microsoft.com/?kbid=251394"
however im not having much luck ..basically in in domain
"ABC" & wish to add a group called "Domain users" from
domains "Test1" & "Test2" into the local administrators
group of my pc.

Can this be done..I've written a batch file which will
create a local account & add that account to the local
administrators group but have not managed to do the same
with this other excercise..any help would be highly
appreciated.

thankyou in advance.
 
net localgroup Administrators "test1\domain users" /add

will do it provided that there is a trust between domain
ABC where the machine lives and the test1 domain (such
automatically exists if these are in the same forest, otherwise
ABC needs to trust test1 so that test1 accounts may flow into
ABC)
 
Back
Top