Recursive group membership of user matching criteria


I need script or cmdlet to retrieve all groups name which contains string “Proxy” that user is member of either directly or recursively (group that is member of another group and so on).

Thanks in advance!

What have you tried already?

Group from where? AD?

yes, all groups from AD that matches the criteria


This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.

What have you tried so far? We expect you to make an own attempt to get your task done or to solve your problem. If you have done so already please document here what exactly you have done and show your code. Then we probably might be able to help you step further.