|
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.
|