Remove a User from all the Distribution Group
How Do I remove a particular user from all the DG in the Rxchange 2007 Organization.
thanks
September 13th, 2011 6:55pm
Powershell or remove it from ADUC.
$DGs= Get-DistributionGroup | where { (Get-DistributionGroupMember $_ | foreach {$_.PrimarySmtpAddress}) -contains "user@domain.com"
}
foreach( $dg in $DGs){
Remove-DistributionGroupMember $dg -Member user@domain.com
}
Powershell-Script to remove all group memberships for one user
http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/99c1f07b-12fa-4e06-95bd-246a757bb00f/James Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
September 13th, 2011 7:10pm
Hi Viministrator,
Above gave a good solution.
If you still have other issue, you could reopen the thread.
Regards!
Gavin
TechNet Subscriber Support
in forum
If you have any feedback on our support, please contact
tngfb@microsoft.com
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if
a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
September 14th, 2011 1:06pm