On Wed, 29 Mar 2006 18:19:02 +0300, "Angel Tsankov" <(E-Mail Removed)> wrote:
>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