Solved

Attribute and code to obtain all security groups a user is a member of in AD

Posted on 2013-12-10
3
176 Views
Last Modified: 2014-03-24
I am trying to obtain a list of all security groups a user in Active Directory is a member of.  I understand the concept of writing powershell code to obtain attributes for an individual or group of individuals within an OU container, but for some reason i am having a difficult time finding the correct attribute and/or applying it to the code.  

Below is what i thought would work, but it is just returning a system string message in the field so there is probably more code required.  info in bold is generic info for the OU and server name

Get-QADUser -SearchRoot dfps.txnet.state.tx.us/OU Name -SizeLimit 0 -Service Server Name | select memberof| Export-Csv c:\Temp\test.csv
0
Comment
Question by:jsawicki
3 Comments
 
LVL 14

Assisted Solution

by:brendanmeyer
brendanmeyer earned 250 total points
ID: 39710176
0
 
LVL 7

Expert Comment

by:XGIS
ID: 39710225
Hello jsawicki... If you are interested in a C# web page style solution.. I could possibly assist you there as we have worked a method that works inside a secure domain.
0
 
LVL 12

Accepted Solution

by:
SreRaj earned 250 total points
ID: 39710558
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Hide local printer for some users (GPO) 2 24
ASP.NET 5 Templates 2 66
C#.NET and microsoft certification. 3 34
Code works but it's slow 24 44
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

867 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

16 Experts available now in Live!

Get 1:1 Help Now