Listing Users that are Part of the Local Administrator Group



Hello,

I'm trying to find/write a script that can return the members of the Local
Administrator group on Win 2K/XP machines. I have an active directory 2003
domain environment and basically want to be able to generate a text file that
lists the computers in my domain with the Domain users that belong to those
computers' local Administrator group. Very new to Windows scripting, and I
can't figure out how to pull the users from the local administrator group.
I'm thinking I need to use WMI which is new to me as well. Any help is most
appreciated.
.



Relevant Pages

  • Re: Listing Users that are Part of the Local Administrator Group
    ... > I'm trying to find/write a script that can return the members of the Local ... > Administrator group on Win 2K/XP machines. ... > computers' local Administrator group. ... I've used a script similar to below to document the local Administrators ...
    (microsoft.public.scripting.vbscript)
  • Limit domain login to Administrator Group
    ... winxp computers as part of the domain. ... each user is a part of their local administrator group on ... localuser2 can not login ...
    (microsoft.public.win2000.group_policy)
  • Re: administrator rights for computer
    ... You can not add a user to the domain admin group from their computer. ... the user logging on with their domain account and being administrator of the ... >> Add their domain account to the local administrator group of their ...
    (microsoft.public.win2000.security)
  • Re: Listing Users that are Part of the Local Administrator Group
    ... I have an active directory 2003 domain environment and basically want to be able to generate a text file that lists the computers in my domain with the Domain users that belong to those computers' local Administrator group. ... Very new to Windows scripting, and I can't figure out how to pull the users from the local administrator group. ... fOutFile.WriteLine vbCrlF & "Other accounts:" fOutFile.WriteLine sOthers fOutFile.Close ...
    (microsoft.public.scripting.vbscript)
  • global group into local group on XP workstation
    ... - reads the members of the local administrator group of a XP workstation ... - put these members AND two further global groups from Windows Server 2003 ... How can help me by creating this script? ...
    (microsoft.public.windows.server.scripting)