/build/static/layout/Breadcrumb_cap_w.png

Script to add user account [SOLVED]

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

Answers (3)

Posted by: mdallen 14 years ago
Senior Yellow Belt
0
Use net localgroup.
for example
net localgroup administrators /add Domain\Username
Posted by: ustacp 14 years ago
Second Degree Blue Belt
0
Thanks alot!!!!! That worked perfectly. I was almost on the right track. I just had it in the wrong places.
Posted by: airwolf 14 years ago
Red Belt
0
You can also control this with group policies.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ