• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 386
  • Last Modified:

how to add a user to a group with DOS commands

I would like to add a member to a group (Computer Management->Local Users and Groups) if the member is not in the group. How to code in DOS shell commands about it?
0
jl66
Asked:
jl66
1 Solution
 
Noam_KuilboerCommented:
Here you go ... you can run this as a batch file or from the command prompt
net localgroup administrators /add Domainname\username
 
In this case the domain user is added to the local admin group
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now