Solved

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

Posted on 2013-12-10
3
175 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

Join & Write a Comment

Installing a printer using group policy preferences is not that hard let’s take a look at it. First lets open up your group policy console and edit the policy you want to add it to. I recommend creating a new policy for each printer makes it a l…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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 …

760 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

20 Experts available now in Live!

Get 1:1 Help Now