account management

  • Thread starter Thread starter Angel Tsankov
  • Start date Start date
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
 
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
 
Back
Top