This is a single line from a script I've been using for a long time. The full script checks the Users AD container for users with passwords that will expire in a certain number of days, sends an email and creates an Admin report that can be sent to the user Administrators.
I want to narrow down the search to certain User Groups in the Users container.
This works perfect for the JazzAdmins group.
$users += Get-QADUser -SearchRoot 'CN=Users,DC=island,DC=local' -Memberof 'JazzAdmins'
However I can not seem to find the right syntax to search multiple groups like JazzAdmins and JazzProjectAdmins, or even better just be able to list any number of Groups for -Memberof.
I spent the last 2 hours searching the internet for my answer with no success so now I'm here where the experts are. :)