Setup: Member server in Active Directory domain

Problem: You need to compare group membership of two users

Solution:

Run this command in PowerShell

Get-QADUser User1 | %{(get-hash($_.memberof)) -eq (get-hash((Get-QADUser User 2 | select memberof)))}

The get-hash is a PowerShell hash function .

Get-QADUser cmdlet is part of ActiveRoles

Leave a Reply

Your email address will not be published. Required fields are marked *