Click here to get back home

Script

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Script BarbS 05-31-2005
`--> Re: Script Roger Abell05-31-2005
Posted by BarbS on May 31, 2005, 4:19 pm
Please log in for more thread options
Is there a script to check if an account is in the administrators group and
to remove the account from the adminstrator group?

This is for a windows 2003 server without AD. Thank You.


Posted by Roger Abell on May 31, 2005, 9:56 pm
Please log in for more thread options
Such could certainly be written, and likely has.
If you do not know scripting you would need someone to customize
the logic for criteria controlling the remove.
At a cmd prompt one may issue
net localgroup administrators
to see the complete membership of the administrators group.
If you see an account xxx that should be removed you may issue
net localgroup administrators xxx /delete

--
Roger Abell
Microsoft MVP (Windows Security)
MCSE (W2k3,W2k,Nt4) MCDBA
> Is there a script to check if an account is in the administrators group
and
> to remove the account from the adminstrator group?
>
> This is for a windows 2003 server without AD. Thank You.




Similar ThreadsPosted
How to remove Shortcut with script March 16, 2007, 1:45 am
Vista cannot logon script? August 25, 2007, 1:20 am
Exporting Certificates using Script October 27, 2007, 2:26 pm
Script to List all users permissions November 28, 2005, 8:13 am
How to set special folder permissions in a script? May 18, 2006, 10:02 am
change user Membership script December 12, 2006, 9:00 am
Delete files with logoff/on script June 3, 2008, 4:42 am
Logon Script set permissions on local directory September 7, 2005, 10:27 am
Domain user login script execution. June 23, 2006, 3:08 am
How to Add 'MyFile.exe' to the 'Run only allowed Windows applications', using a Script / Registry / WMI / API or whatever ? July 16, 2007, 3:24 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap