Need help listing members of group (beyond ID)

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"?
 
M

Matt Williamson

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.
 

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

Top