REMOVE DISABLE USERS From AD Groups
I am struggling to find a decent way to do this. We have a lot of users who are disabled but are still a member of all of their pre-disable groups. This is causing a few issues such as distribution list failures, difficulty enumerating ACL's etc.
Does anyone know of an easy way to bulk remove groups from users that are disabled? For ease, they all exist in one container. then export to a csv file all the users group that go disabled, anybody already using such powershell script will be willing to share.
any help would be greatly appreciated.