Solved

Powershell script for AD

Posted on 2012-03-15
3
466 Views
Last Modified: 2012-03-16
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.
0
Comment
Question by:HLR6S
3 Comments
 
LVL 8

Accepted Solution

by:
Elmar-H earned 500 total points
ID: 37725029
0
 
LVL 57

Expert Comment

by:Mike Kline
ID: 37725539
adinfo is a free tool that you might want to check out

http://www.cjwdev.co.uk/Software/ADReportingTool/Info.html

I've attached a screenshot, doesn't distinguish the group type.

I know scripts with powershell and adfind can do it but not sure about the checkbox that would say what type of group.   For example in adfind   http://www.activedir.org/Articles/tabid/54/articleType/ArticleView/articleId/29/LDAP-tips-2-Searching-for-Groups.aspx

adinfo screenshot below

adinfo user groups
Thanks

Mike
0
 

Author Closing Comment

by:HLR6S
ID: 37729520
Thank you, I was able to quickly get the info I needed with this tool.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One of the most frustrating experiences a help desk technician will ever encounter is when a customer comes to them with a solution of their own invention and expects the tech to implement it. This often happens when people with a little bit of tech…
Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now