Solved

how to add a user to a group with DOS commands

Posted on 2009-05-15
1
377 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 500 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
This article summaries thoughts and ideas from two years of sustained use. It provides good reasoning to make the jump to Windows 10.
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

685 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