Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I thought this was the default behavior in Exchange 2010 but apparently it is not - how can I ensure that when I mark a mailbox for removal in Exchange 2010 console, it will remove all instances of that recipient from any distribution lists? Right now, it removes the mailbox, but retains the member, causing "bounce" messages when people send to that mailing list.

share|improve this question
    
Are you removing the account from AD or just removing the mailbox? –  Jesse Paxson Jun 18 '12 at 14:59
    
Removing the mailbox, disabling the account –  tacos_tacos_tacos Jun 18 '12 at 18:37

1 Answer 1

up vote 0 down vote accepted

That's the "intended" behavior of static distribution lists. You have to either join and unjoin people manually, or create a script to do the work for you. Powershell is your friend if you do a lot of this kind of thing.

Alternately, you can move over to dynamic distribution lists, which would update themselves when you delete a user, but those have their own set of problems.

I’d think the easiest solution would be creating a delete user script that scans your distribution lists for user being deleted and removes that account.

share|improve this answer
    
Ok - so the easiest way to go is a script? –  tacos_tacos_tacos Jun 18 '12 at 18:37
    
In my opinion, at least. I like to use them for just about everything, so that every user is created/deleted/moved with exactly the settings I sepcify and no need to click through a bunch of pop-up boxes to do it. For removing users, you could do something like: $DGs= Get-DistributionGroup | where { (Get-DistributionGroupMember $_ | foreach {$_.PrimarySmtpAddress}) -contains "user@domain.com" } foreach( $dg in $DGs){ Remove-DistributionGroupMember $dg -Member user@domain.com } Or make a bigger script that incorporates everything into one (delete mailbox, disable account, etc.) –  HopelessN00b Jun 18 '12 at 18:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.