Software for Groups n User List

  • Thread starter Thread starter Harry
  • Start date Start date
H

Harry

Hi!

I have a lot of users and groups in my Windows 2003 Domain. The groups list
keeps building up.

Is there any software which when run will generate data of No.of Groups and
the No.of Users in each Group??

Its quite tedious to double click each group and manually take note of
users.

Pl suggest.

Thanks a lot
Harry
 
Harry said:
Hi!

I have a lot of users and groups in my Windows 2003 Domain. The groups
list keeps building up.

Is there any software which when run will generate data of No.of Groups
and the No.of Users in each Group??

Its quite tedious to double click each group and manually take note of
users.

Pl suggest.

Thanks a lot
Harry

This little batch file might give you the answers you're after.

#@echo off
#if exist c:\Groups.txt del c:\Groups.txt
#set parm=Localgroup
#for /F "tokens=*" %%* in ('net localgroup ^| find "*"') do call :Sub %%*
#set parm=Group
#for /F "tokens=*" %%* in ('net groups /domain ^| find "*"') do call :Sub
%%*
#notepad c:\Groups.txt
#goto :eof
#
#:Sub
#set name=%*
#echo Group name: %name%
#echo %parm% name: %name:~1% >> c:\Groups.txt
#net %parm% "%name:~1%" | find /i /v "completed successfully" | more +6 >>
c:\Groups.txt

Each new line starts with a #. You must remove it before you
can run the batch file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top