Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to add a user to a group with DOS commands

Posted on 2009-05-15
1
Medium Priority
?
384 Views
Last Modified: 2013-11-29
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
Comment
Question by:jl66
1 Comment
 
LVL 9

Accepted Solution

by:
Noam_Kuilboer earned 2000 total points
ID: 24398767
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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
IF you are either unfamiliar with rootkits, or want to know more about them, read on ....
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question