Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

Users in an OU that are members of a group (CMD, not PS)

$
0
0

Hi,

I need help finding the users in an OU that are in a specific group.  What I have so far is:

dsquery user "ou=users" -limit 300 | dsget user -memberof 

This happily shows the lists of groups each user is in, but provides no identifying information to each list.  It would seem that using dsget user -memberof and -fn -ln are mutually exclusive.  This is unfortunate.  Is there an easy way to do this?

Please don't suggest powershell.. while I would love to use it, my current domain admins think powershell is of the devil. I'd love to use foreach but I'm a bash/tcsh scripter, not cmd.


Viewing all articles
Browse latest Browse all 31638

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>