Re: script to list users and groups in domain admin and local admin gr

From: Tekmazter (Sigs48_at_Hotmail.com)
Date: 03/24/05


Date: Thu, 24 Mar 2005 10:02:10 -0500

You can use a basic batch file coupled with a text file conataining your
server names for this:

******************************************
ECHO OFF

::Enumerate the Domain Admin group members
net group "domain admins" /domain

::Call from file each server I would like to Enumerate the local
administrators group
for /f %%i in (Computers.txt) do call PUTYOURCOMMAND HERE \\%%i
>>FILENAMEHERE.txt
END
******************************************

Where you see the \\%%i is where the computer names will be filled in
automatically from your text file which contains them. There are plenty of
tools capable of enumerating remote admin groups.

"crosswired" <crosswired@discussions.microsoft.com> wrote in message
news:1BA8FDE1-B57F-42A1-9F35-E664D9F4960A@microsoft.com...
>I am looking for a script or guidance to write a script that will list all
> the users and groups that belong to the domain admin group and the local
> admin group on each server in the domain. This way, I will not have to
> check
> each server individually when doing periodic security scans.
>
> If anyone can help, I would appreciate. Thanks.
>
> N.P.



Relevant Pages

  • Re: 2.0 distribution points to 2003 distribution points
    ... so I added the site server to the domain admin group. ... >> 2.0 interface and all of the DP site systems are gone now. ...
    (microsoft.public.sms.setup)
  • Re: Outlook Web Access
    ... MVP - Exchange ... "Protecting the world from PSTs and brick backups!" ... back-end server that is in the same admin group as the front-end ... a mailbox on the back-end server in a different admin group, ...
    (microsoft.public.exchange.admin)
  • Cant Manage XP Machines in AD
    ... users to the local admin group. ... the server was old so we bought a new server. ... When I log in my profile comes down correctly, ... the profile they can only see certain folders: ...
    (microsoft.public.win2000.advanced_server)
  • Cant Manage XP Machines from AD
    ... users to the local admin group. ... the server was old so we bought a new server. ... When I log in my profile comes down correctly, ... the profile they can only see certain folders: ...
    (microsoft.public.backoffice.smallbiz2000)
  • Public Folder Replication Problem
    ... Admin group A has 2 servers, one of which is a 2 node cluster. ... Admin group A contains both routing groups. ... server and select replication partners it does not replicate to them. ...
    (microsoft.public.exchange.admin)