views:

547

answers:

3

I often use the net user command to have a look at AD groups for a user:

net user /DOMAIN <username>

This works well, however the group names are truncated to around 20 characters. And in my organization, most group names are much longer than this.

Does anyone know of a way to get non-truncated AD groups through the command line?

A: 

You could use WMI

Preet Sangha
+1  A: 

You could parse the output from the GPRESULT command.

serialhobbyist