Hello All!
I'm wondering if there is a powershell script to check a specific account from belongs to a certains groups (list of groups in CSV format). For the purpose of my lab the following command sequence does not works for that.
Get-ADPrincipalGroupMembership -identity user1 | select samaccountname
The idea is to make the inverse, export all groups of the domain and check if the user belongs to them. Why? the reason is the user is not member of the domain where the groups are.
I hope you can give me a hand, thank you in advance.