Guest Harry Posted October 2, 2007 Posted October 2, 2007 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
Guest Pegasus \(MVP\) Posted October 2, 2007 Posted October 2, 2007 Re: Software for Groups n User List "Harry" <hvmadhuna@yahoo.com> wrote in message news:%23RdSEiNBIHA.5868@TK2MSFTNGP05.phx.gbl... > 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.
Guest Brains,None Posted October 2, 2007 Posted October 2, 2007 Re: Software for Groups n User List Pegasus (MVP) wrote: > "Harry" <hvmadhuna@yahoo.com> wrote in message > news:%23RdSEiNBIHA.5868@TK2MSFTNGP05.phx.gbl... >> 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. > > Man, thanks Pegasus!!!!! -j.
Guest Pegasus \(MVP\) Posted October 2, 2007 Posted October 2, 2007 Re: Software for Groups n User List "Brains,None" <noone@overyonder.org> wrote in message news:u5%23kKDRBIHA.5160@TK2MSFTNGP05.phx.gbl... > Pegasus (MVP) wrote: >> "Harry" <hvmadhuna@yahoo.com> wrote in message >> news:%23RdSEiNBIHA.5868@TK2MSFTNGP05.phx.gbl... >>> 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. > > Man, thanks Pegasus!!!!! -j. You're welcome.
Guest Ven Posted October 20, 2007 Posted October 20, 2007 Re: Software for Groups n User List Thanks a million!!!!!!!!!! Appreciate it - will try it now "Pegasus (MVP)" <I.can@fly.com> wrote in message news:uCJ$ErNBIHA.4732@TK2MSFTNGP04.phx.gbl... > > "Harry" <hvmadhuna@yahoo.com> wrote in message > news:%23RdSEiNBIHA.5868@TK2MSFTNGP05.phx.gbl... >> 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. >
Recommended Posts