Forum Discussion
Mark Louie Diaz
Jul 16, 2018Copper Contributor
Powershell script to get all group membership(UG or DL) and remove that user only to that group
Hi, May I ask for your assistance to edit this script from Microsoft instead of checking every group that a user is member of maybe I could use the variable $filter in removing the user also? ...
VasilMichev
Jul 16, 2018MVP
I just recently published a script that does just that: https://gallery.technet.microsoft.com/Remove-user-from-all-8d44f772?redir=0
Use it with the -Verbose and -WhatIf parameter first to preview the exact changes that will be made, once you are satisfied with the results run it for real.