group name

  • Thread starter Thread starter JIM H.
  • Start date Start date
J

JIM H.

Hello,
I know %username% gives the user name in the command
prompt. Is there any way I can reach group name of a user
(each user is in a group)
Thanks,
Jim.
 
You asked for two different things, if I read this right. An answer to the
"each user in a group" is:

net localgroup "group name"

This is for local groups, obviously. :]

You can run:
net group "group name"
from a DC.

You can use global.exe from the W2K Resource Kit to list members of groups
on other machines or in the domain.

global "group name" nameOfDomainOr\\Server

Ray at home
 
Thanks Ray,
How can I figure out groupname if I know username? What
is the fastest and easiest way to do this in a command
prompt?
Thanks,
Jim.
-----Original Message-----
You asked for two different things, if I read this right. An answer to the
"each user in a group" is:

net localgroup "group name"

This is for local groups, obviously. :]

You can run:
net group "group name"
from a DC.

You can use global.exe from the W2K Resource Kit to list members of groups
on other machines or in the domain.

global "group name" nameOfDomainOr\\Server

Ray at home

Hello,
I know %username% gives the user name in the command
prompt. Is there any way I can reach group name of a user
(each user is in a group)
Thanks,
Jim.


.
 
Jim,
try showgrps. it should be in the resource kit.
syntax: showgrps [domain]\[user]
returns a lis of groups to which a user is a member

there is also showmbrs which shows the members of a group.

Hope this helps
Mark


JIM H. said:
Thanks Ray,
How can I figure out groupname if I know username? What
is the fastest and easiest way to do this in a command
prompt?
Thanks,
Jim.
-----Original Message-----
You asked for two different things, if I read this right. An answer to the
"each user in a group" is:

net localgroup "group name"

This is for local groups, obviously. :]

You can run:
net group "group name"
from a DC.

You can use global.exe from the W2K Resource Kit to list members of groups
on other machines or in the domain.

global "group name" nameOfDomainOr\\Server

Ray at home

Hello,
I know %username% gives the user name in the command
prompt. Is there any way I can reach group name of a user
(each user is in a group)
Thanks,
Jim.


.
 

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