Is it possible to add a user account to a computer (XP) via a script? Basically, I want to be able to run a post install (KBox) via a script after pushing out an image. This will add a predefined user account to that computer. It will need to be setup on the domain and in the administrator group. The account is already created in AD, I just need that account added to the PC in the admin group. Any ideas?
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Use net localgroup.
for example
net localgroup administrators /add Domain\Username
Answered 02/24/2010 by: mdallen
Senior Yellow Belt

Please log in to comment
0
Thanks alot!!!!! That worked perfectly. I was almost on the right track. I just had it in the wrong places.
Answered 02/24/2010 by: ustacp
Second Degree Blue Belt

Please log in to comment
0
You can also control this with group policies.
Answered 02/24/2010 by: airwolf
Tenth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity