remove email addresses with a particular domain in users profile
Hello All, We have Exchange 2007. We have many users having their domains as @kjbc.com. We have been asked to delete this particular email domain for the users having them. All users having @kjbc.com as their primary email / 2ndary email address must have this particular extension deleted. is this posssible? how? Thanks in advance Philip
August 8th, 2011 8:57am

remove the email address policy of the secondary email address Could you please use this tool and remove the email address of all users http://admodify.codeplex.com/releases/view/6065Thanks Joseph Pradeep
Free Windows Admin Tool Kit Click here and download it now
August 8th, 2011 9:36am

Hi Psunith, I did a test. ADmodify can remove the email address from both primary address and the other email address. Here are some more detailed processes about using ADmodify. http://technet.microsoft.com/en-us/library/bb288905(EXCHG.80).aspx 1. Note: In order to select user, please don’t ticket the option: Show Containers Only 2. As my test, you don’t need to disable email address policy before run ADmodify. For how to disable email address policy: Get-mailbox –server Exchange |set-mailbox –emailaddresspolicyenabled:$false ADmodify can remove the email addresses although email address policy is enabled. 3. The article Joseph posted is useful. Note: The attribute value is case sensitive, please make sure you input the string same as smtp:%’mailNickName’%@domain.com 4. Although you can remove the primary address, once you removed the primary email address, user will have no primary email address. So when you see the user’s email address, you will get an warning report.
August 10th, 2011 11:27pm

Hi, Use the below script to remove all the email addresses with @kjbc.com. #################################################################### # Remove proxy addresses # change the Get-Mailbox statement in line 6 to select only a subset of mailboxes # change -like paratameter in line 13 to the domain you want to remove #get mailboxes and iterate through Get-Mailbox | where {$_.emailaddresses -like "*@kjbc.com*"} | foreach { # .emailaddresses returns array # loop each email address for ($i=$_.EmailAddresses.Count;$i -ge 0; $i--) { $address = $_.EmailAddresses[$i] # removes all addresses with test.com domain if ($address -like "*@kjbc.com" ) { Write-host("Remove Notes adress: " + $address.AddressString.ToString() ) # remove address in the array $_.EmailAddresses.RemoveAt($i) } } # save changes $_|set-mailbox } ####################################################################
Free Windows Admin Tool Kit Click here and download it now
August 11th, 2011 2:34am

I think you just published my script. http://anewmessagehasarrived.blogspot.com/2008/06/remove-proxyaddresses-powershell-script.html lasse at humandata dot se, http://anewmessagehasarrived.blogspot.com
August 11th, 2011 3:19am

Yeah. its from your site . Mahendra
Free Windows Admin Tool Kit Click here and download it now
August 11th, 2011 4:52am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics