Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: Remove domain user from local administrators group |
|---|---|
| Date: | Wed, 13 Oct 2004 13:44:27 -0500 |
----- Original Message ----- From: "chang zhu" <cyz2000@yahoo.com> To: <focus-ms@securityfocus.com> Sent: Tuesday, October 12, 2004 10:17 AM Subject: Remove domain user from local administrators group
Hi,all I just went to this new company and found out that each domain user is assigned to local administrators group. We need to remove domain user from local administrators group. Is there any MS utility that allows to do this instead of going to each workstation to remove and assign them to Power Users group? The environment is Win2K and XP. Thanks always, Chang __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
I would think that a login script containing the net localgroup directive
would help here.
The syntax of this command is:
NET LOCALGROUP [groupname [/COMMENT:"text"]] [/DOMAIN]
groupname {/ADD [/COMMENT:"text"] | /DELETE} [/DOMAIN]
groupname name [...] {/ADD | /DELETE} [/DOMAIN]
As an example, what I've added in the past to "add" certain users and groups
to another group:
net localgroup administrators "mydomainname\Domain Admins" /ADD
:end
This should be just as easy to run to remove someone:
net localgroup administrators "mydomainname\Domain Users" /delete
:end
--
Micheal Patterson
Senior Communications Systems Engineer
405-917-0600
Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information. Any unauthorized review, use,
disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.
---------------------------------------------------------------------------
---------------------------------------------------------------------------
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: Remove domain user from local administrators group, Arek Słomiński |
|---|---|
| Next by Date: | Remote connections, Paul Aviles |
| Previous by Thread: | Re: Remove domain user from local administrators group, Harlan Carvey |
| Next by Thread: | RE: Remove domain user from local administrators group, Depp, Dennis M. |
| Indexes: | [Date] [Thread] [Top] [All Lists] |