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