I Have a DG with thousands of users in there, I would like to run a script that checks the membership of the group and if an account is hidden from the GAL to remove it from the group and output a list of the accounts that is has removed. Getting a little confused with IADS & PutEx as I can only do it by passing a DN of an individual. I need the script to basically search on (memberOf=CN=All People,OU=Exchange Recipients,DC=domain,DC=com)(&(&(objectclass=user)(msExchHideFromAddressLists=TRUE)))) and remove them.
Any ideas
Any ideas