Need help listing members of group (beyond ID)

  • Thread starter Thread starter pnjtlxhzhgjb
  • Start date Start date
P

pnjtlxhzhgjb

I can run "net group MyGroup /DOMAIN". The list returned are just
user IDs.

Then I can run "net user UserID /DOMAIN" to get more information (such
as their real name).

Is there a single VBscript or CommandLine tool that will get me more
extensive member information so I do not have to run the "Net User"
command for every ID reported in "Net Group"?
 
I can run "net group MyGroup /DOMAIN". The list returned are just
user IDs.

Then I can run "net user UserID /DOMAIN" to get more information (such
as their real name).

Is there a single VBscript or CommandLine tool that will get me more
extensive member information so I do not have to run the "Net User"
command for every ID reported in "Net Group"?

"WMIC Useraccount get name" will give you an easy to parse list that you
can pass to Net USER in a for loop.
 
Back
Top