Re: script to list users and groups in domain admin and local admin gr
From: Tekmazter (Sigs48_at_Hotmail.com)
Date: 03/24/05
- Next message: steve813: "Re: How do I find what computers a user is logged into?"
- Previous message: David Cross [MS]: "Re: PKI Webcast?"
- In reply to: crosswired: "script to list users and groups in domain admin and local admin gr"
- Next in thread: Roger Abell: "Re: script to list users and groups in domain admin and local admin gr"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Next message: steve813: "Re: How do I find what computers a user is logged into?"
- Previous message: David Cross [MS]: "Re: PKI Webcast?"
- In reply to: crosswired: "script to list users and groups in domain admin and local admin gr"
- Next in thread: Roger Abell: "Re: script to list users and groups in domain admin and local admin gr"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|