account management

A

Angel Tsankov

Using the command prompt how can I disable an account or remove it from a group?
 
J

Jerold Schulman

Using the command prompt how can I disable an account or remove it from a group?

See tip 6820 » What are the new Active Directory command-line tools in Windows Server 2003?
in the 'Tips & Tricks' at http://www.jsifaq.com

To disable a user account:

dsmod user <UserDN> -disabled yes

To remove a user account from a group:

dsmod group <GroupDB> -rmmbr <UserDN>

OR

net user UserNamew /active:no /domain

net group "GroupName" "UserName" /del /domain

for a local group:

net localgroup "GroupName" "UserName" /del

Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com
http://www.jsifaq.com
 
M

Michael Bednarek

Using the command prompt how can I disable an account or remove it from a group?

Start with the NET command, e.g. NET HELP USER or NET HELP GROUP.
 
R

Roger Abell [MVP]

Michael Bednarek said:
Start with the NET command, e.g. NET HELP USER or NET HELP GROUP.

and
net help localgroup
for domain local groups instead of global groups
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top