header
header Register : : Login header
header
divider
menuleft
menuright
submenu
left

We have a new sponsor!  Introducting Pragma Systems.  See the home page for details.

remove secondary smtp address
Last Post 05 Jul 2010 08:12 AM by zom. 2 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
zomUser is Offline
New Member
New Member
Posts:3
Avatar

--
24 Jun 2010 09:14 AM  
Hi guys, trying to remove a lists of users from different domain that have secondary email address contain the word "_site" is that possible with powershell? Thanks
PresenceUser is Offline
New Member
New Member
Posts:72
Avatar

--
29 Jun 2010 01:48 PM  
get-mailbox | where {$_.emailaddresses.proxyaddressstring -like "*_site*"} | foreach {
$email = get-mailbox $_
$emailremoval = $email.emailaddress | where {$_.proxyaddressstring -like "*_site*"}
$email.emailaddresses -= $emailremoval
set-mailbox $email -emailaddresses $emailremoval
}

something like this should work, please test it before applying it across your environment.

Thanks
Pres
zomUser is Offline
New Member
New Member
Posts:3
Avatar

--
05 Jul 2010 08:12 AM  

Hi Pres,

sorry to say that the script that you provided is not able to work, it does not remove the secondary email address of the users.

You are not authorized to post a reply.

Active Forums 4.1
right
   
footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 footer
footer