Solved

how to add a user to a group with DOS commands

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …

786 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