I have been searching online but have been having trouble locating a script to do exactly what I want. I hope someone here can help. I am looking for a Powershell script (or another free alternative) that will produce a file that lists all users in a specific Active Directory OU and all of their memberships. If it can distinguish between a security group and a distribution group that would be even better. Also it would be helpful if it could list each users' username as well. I heard a program called Hyena can do this but I used up my 30 day trial on another project some time ago and cannot afford to purchase the full application at this point.
Any help would be appreciated.