Email Address Policy filtering - by UPN
I am trying to filter an Email Address policy on a users UPN
but the below is not working, my test user has a mailbox and the UPN of @schoola.edu
New-EmailAddressPolicy -Name "test11" -RecipientFilter {((userPrincipalName -eq "@schoola.edu") -and (RecipientType -eq "UserMailbox"))} -EnabledEmailAddressTemplates "SMTP:%s%2g@test.com"
March 22nd, 2012 4:38pm
Hi,
try this rule:
New-EmailAddressPolicy -Name "test11" -RecipientFilter {((userPrincipalName -like "*@schoola.edu") -and (RecipientType -eq "UserMailbox"))} -EnabledEmailAddressTemplates "SMTP:%s%2g@test.com"
regards Thomas Paetzold visit my blog on: http://sus42.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
March 22nd, 2012 4:44pm
Hi
-eq is a comparison operator for
equal to, UserPrincipalName eq @schoola.edu wont filter all the mailboxes.
You can read this similar case.
http://social.technet.microsoft.com/Forums/eu/exchangesvradmin/thread/4c416b9c-5d10-45ab-8839-3e00635c7c7d
TechNet Subscriber Support
in forum
If you have any feedback on our support, please contact
tngfb@microsoft.com
Terence Yu
TechNet Community Support
March 22nd, 2012 9:55pm
Hi Peddy
thanks, will try this and let you know
Cheers
James
Free Windows Admin Tool Kit Click here and download it now
March 23rd, 2012 4:11am
thanks Terence and Thomas
that worked a treat
although seem counter intuitive that the eq doe not work, but hey ho
March 23rd, 2012 5:21am