command line net group

i can view some users in some group but others no.

those groups are both security group, but running the command i can only view users from the other.

command

net group <groupname>

are there any limitation to string i enter, i mean if the group name is to long ?

appr

July 12th, 2015 6:16pm

> net group <groupname>   try "net localgroup" too :)  
Free Windows Admin Tool Kit Click here and download it now
July 13th, 2015 9:14am

Ah - and try to move to "dsquery group" instead. "net group" is limited to 20 characters in the groups' name and cannot resolve group nestings.  
July 13th, 2015 9:15am

Thanks Martin,

i have create and tested 2  to security groups

one is 20 words and the other is 21 words.

 group one name : aaaaaaaaaaaaaaaaaaaa

group two name : bbbbbbbbbbbbbbbbbbbbb

running the net group <groupname> with these 2 created group, i can still view users in them. this in referring to your statement

"net group" is limited

to 20 characters in the groups' name and cannot resolve group nestings."??

Free Windows Admin Tool Kit Click here and download it now
July 16th, 2015 2:09am

Microsoft did not provide and information to the length of the string on its tech article

https://technet.microsoft.com/en-us/library/cc754051.aspx

Regards

July 16th, 2015 2:12am

net localgroup <groupname> does not work on domain level
Free Windows Admin Tool Kit Click here and download it now
July 16th, 2015 2:26am

Net localgroup administrators

It is working once check it with same command and after try another group name

July 16th, 2015 2:31am

> net localgroup <groupname> does not work on domain level   Yes it does. And it lists all members of domain local groups. If you run it on a member computer, append "/dom"... If you run it on a DC, omit the "/dom" parameter.  
Free Windows Admin Tool Kit Click here and download it now
July 16th, 2015 9:51am

> to 20 characters in the groups' name   Might be I messed up with "net user" - here the groups are truncated :)  
July 16th, 2015 9:52am

Thanks all.

I will try and work around with the dsquery group if it'll help.

Appreciate your comments

Regards

Free Windows Admin Tool Kit Click here and download it now
July 17th, 2015 1:34am

Hi bsl,

Does the question has solved?

Best Regards,

July 20th, 2015 11:19pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics