To Create a new Address list which is filtered on users UPN and Creates in a Container called Test Dept (To Create at the root, Replace with \:
New-AddressList -Name "Test Address List" -Container "Test Dept" -RecipientFilter {((RecipientType -eq 'UserMailbox') -and ((UserPrincipalName -like '*@test.co.uk') ))}
To Create EAP based on users UPN:
New-EmailAddressPolicy -Name "AD Net EAP" -EnabledPrimarySMTPAddressTemplate "smtp:%g.%s@test.com" -RecipientFilter "UserPrincipalName -like '*@ad.net'" -Priority "9"
No comments:
Post a Comment