I am trying to get Security Groups for a list of members that starts with a certain sequence, e.g. "Mumbo - Jumbo -*".
I have a list of samaccountnames in a CSV file, and I want the script to find and export to a CSV only the Security Groups that match that pattern.
I can list all of the Security Groups for each member, but that's too much. Also, I want to have the samaccountname listed for each one.
Any help would be appreciated.