'How to search through FSPs by sAMAccountName

Does someone know how you can search troughs FSPs by sAMAccountNames

Get-ADObject -Filter {ObjectClass -eq "foreignSecurityPrincipal"} -Properties msds-principalname,memberof    

wanting to know if there are groups here associated with a specific user.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source