i would like to get list of AD groups a user is a primary owner of. i have gone through this question already. But its not giving me the attribute/property whether the user is a primary owner of secondary owner.
How to get the above requirement. the below code is for getting the memberonly. ( Please correct me , if i am wrong)
Import-Module ActiveDirectory
(Get-ADUser userName –Properties MemberOf | Select-Object MemberOf).MemberOf