Re: Finding users in local admin groups

From: Torgeir Bakken (MVP) (Torgeir.Bakken-spam@hydro.com)
Date: 02/20/03


From: "Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com>
Date: Thu, 20 Feb 2003 23:22:53 +0100


Sue Mc wrote:

> One of my associates suggested that I marry you, but I'm sending my
> wholehearted gratitude instead.

LOL, I'm up for grabs for the time being, so it's too bad you didn't listen to
your associate ;-)

> Thank you so much. There had to be a good
> deal of work involved in that. Thanks again. We'll try it out tonight.

Your welcome. Note that the script will not move any domain users or groups from
the Administrators group to the Powers Users group, but it can be added if
needed. Just ask here if so (put in some details maybe), and I will look into
it, send a copy to my mail address as well (remove -spam), the newsservers are a
bit shaky just now, so it isn't all news messages that find its way to Norway.

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and a ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter


Relevant Pages

  • Re: Remove Users From Local Admin Group
    ... > local Admin group from the login script. ... Both local and domain users will be removed ... ' account from the Administrators group will fail. ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.vbscript)
  • Re: Script for creating a new user
    ... I want to create a local user. ... Creating a local user and adding it to the Administrators group ... ' Use error handling in case the account is a member already ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.vbscript)
  • Re: AD in Local Groups differente languajes?
    ... > the local Administrators group on every workstation, ... > have different languages on the workstation and the Administrators group ... To run this WMI query against NT4 computers, ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.windows.server.scripting)
  • Re: Remove Users From Local Admin Group
    ... Below is a script that will remove all *user* accounts from the ... ' suppress errors, e.g. trying to remove the builtin Administrator ... ' account from the Administrators group will fail. ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.vbscript)
  • Re: Registry Key
    ... > would like to add a new group to the administrators group ... (in a command prompt, run "net.exe help localgroup" for more information) ... The free command line utility Lg.exe on the free win32 c++ tools page of ... Microsoft MVP Scripting and WMI, ...
    (microsoft.public.windowsxp.security_admin)