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.