Jump to content

Recommended Posts

Posted

Hi,

 

I want to use our custom domain (xxxxxxxx.wa.edu.au) for all new Microsoft Teams, instead of the xxxxxxxx.onmicrosoft.com domain

 

My Email address policy is:

 

PS C:\Users\ITManager> get-emailaddresspolicy | flRunspaceId : 94e2aa3d-e92b-4c88-9609-8d6241ce6bf5RecipientFilter : Alias -ne $nullLdapRecipientFilter : (mailNickname=*)LastUpdatedRecipientFilter :RecipientFilterApplied : FalseIncludedRecipients : AllRecipientsConditionalDepartment : {}ConditionalCompany : {}ConditionalStateOrProvince : {}ConditionalCustomAttribute1 : {}ConditionalCustomAttribute2 : {}ConditionalCustomAttribute3 : {}ConditionalCustomAttribute4 : {}ConditionalCustomAttribute5 : {}ConditionalCustomAttribute6 : {}ConditionalCustomAttribute7 : {}ConditionalCustomAttribute8 : {}ConditionalCustomAttribute9 : {}ConditionalCustomAttribute10 : {}ConditionalCustomAttribute11 : {}ConditionalCustomAttribute12 : {}ConditionalCustomAttribute13 : {}ConditionalCustomAttribute14 : {}ConditionalCustomAttribute15 : {}RecipientContainer :RecipientFilterType : PrecannedPriority : LowestEnabledPrimarySMTPAddressTemplate : @xxxxxxxx.onmicrosoft.comEnabledEmailAddressTemplates : {SMTP:@xxxxxxxx.onmicrosoft.com}DisabledEmailAddressTemplates : {}HasEmailAddressSetting : TrueHasMailboxManagerSetting : FalseNonAuthoritativeDomains : {}AdminDescription :ManagedByFilter :ManagedByLdapFilter :AdminDisplayName :ExchangeVersion : 0.1 (8.0.535.0)Name : Default PolicyDistinguishedName : CN=Default Policy,CN=Recipient Policies,CN=Configuration,CN=xxxxxxxx.onmicrosoft.com,CN=ConfigurationUnits,DC=AUSPR01A002,DC=PROD,DC=OUTLOOK,DC=COMIdentity : Default PolicyObjectCategory : AUSPR01A002.PROD.OUTLOOK.COM/Configuration/Schema/ms-Exch-Recipient-PolicyObjectClass : {top, msExchGenericPolicy, msExchRecipientPolicy}WhenChanged : 30/11/2016 2:17:24 AMWhenCreated : 13/07/2015 9:53:54 AMWhenChangedUTC : 29/11/2016 6:17:24 PMWhenCreatedUTC : 13/07/2015 1:53:54 AMExchangeObjectId : deaf13b5-0b62-4709-af4b-eca828f59942OrganizationId : AUSPR01A002.PROD.OUTLOOK.COM/Microsoft Exchange Hosted Organizations/xxxxxxxx.onmicrosoft.com - AUSPR01A002.PROD.OUTLOOK.COM/ConfigurationUnits/xxxxxxxx.onmicrosoft.com/ConfigurationId : Default PolicyGuid : deaf13b5-0b62-4709-af4b-eca828f59942OriginatingServer : SYBPR01A002DC04.AUSPR01A002.PROD.OUTLOOK.COMIsValid : TrueObjectState : UnchangedRunspaceId : 94e2aa3d-e92b-4c88-9609-8d6241ce6bf5RecipientFilter : RecipientTypeDetails -eq 'GroupMailbox'LdapRecipientFilter : (&(|(&(!(!(objectClass=user)))(objectCategory=person)(mailNickname=*)(msExchHomeServerName=*))(&(objectCategory=group)(groupType:1.2.840.113556.1.4.804:=8)(!(groupType:1.2.840.113556.1. 4.804:=2147483648))(mailNickname=*)))(msExchRecipientTypeDetails=1099511627776))LastUpdatedRecipientFilter :RecipientFilterApplied : FalseIncludedRecipients :ConditionalDepartment : {}ConditionalCompany : {}ConditionalStateOrProvince : {}ConditionalCustomAttribute1 : {}ConditionalCustomAttribute2 : {}ConditionalCustomAttribute3 : {}ConditionalCustomAttribute4 : {}ConditionalCustomAttribute5 : {}ConditionalCustomAttribute6 : {}ConditionalCustomAttribute7 : {}ConditionalCustomAttribute8 : {}ConditionalCustomAttribute9 : {}ConditionalCustomAttribute10 : {}ConditionalCustomAttribute11 : {}ConditionalCustomAttribute12 : {}ConditionalCustomAttribute13 : {}ConditionalCustomAttribute14 : {}ConditionalCustomAttribute15 : {}RecipientContainer :RecipientFilterType : CustomPriority : 1EnabledPrimarySMTPAddressTemplate : @xxxx.wa.edu.auEnabledEmailAddressTemplates : {SMTP:@xxxx.wa.edu.au}DisabledEmailAddressTemplates : {}HasEmailAddressSetting : TrueHasMailboxManagerSetting : FalseNonAuthoritativeDomains : {}AdminDescription :ManagedByFilter :ManagedByLdapFilter :AdminDisplayName :ExchangeVersion : 0.1 (8.0.535.0)Name : GroupsDistinguishedName : CN=Groups,CN=Recipient Policies,CN=Configuration,CN=xxxxxxxx.onmicrosoft.com,CN=ConfigurationUnits,DC=AUSPR01A002,DC=PROD,DC=OUTLOOK,DC=COMIdentity : GroupsObjectCategory : AUSPR01A002.PROD.OUTLOOK.COM/Configuration/Schema/ms-Exch-Recipient-PolicyObjectClass : {top, msExchGenericPolicy, msExchRecipientPolicy}WhenChanged : 10/11/2020 9:16:15 AMWhenCreated : 10/11/2020 9:16:03 AMWhenChangedUTC : 10/11/2020 1:16:15 AMWhenCreatedUTC : 10/11/2020 1:16:03 AMExchangeObjectId : 2a3f732c-9e44-4759-8838-f01942866f60OrganizationId : AUSPR01A002.PROD.OUTLOOK.COM/Microsoft Exchange Hosted Organizations/xxxxxxxx.onmicrosoft.com - AUSPR01A002.PROD.OUTLOOK.COM/ConfigurationUnits/xxxxxxxx.onmicrosoft.com/ConfigurationId : GroupsGuid : 2a3f732c-9e44-4759-8838-f01942866f60OriginatingServer : SYBPR01A002DC04.AUSPR01A002.PROD.OUTLOOK.COMIsValid : TrueObjectState : Unchanged

 

Short version:

 

PS C:\Users\ITManager> get-emailaddresspolicyName Priority RecipientFilter---- -------- ---------------Default Policy Lowest Alias -ne $nullGroups 1 RecipientTypeDetails -eq 'GroupMailbox'

 

If I type the following:

 

New-EmailAddressPolicy -Name Groups -IncludeUnifiedGroupRecipients -EnabledEmailAddressTemplates "SMTP:@iswa.wa.edu.au" -Priority 1

 

I get this error:

 

Active Directory operation failed on SYBPR01A002DC04.AUSPR01A002.PROD.OUTLOOK.COM. The object 'CN=Groups,CN=RecipientPolicies,CN=Configuration,CN=iswawaeduau.onmicrosoft.com,CN=ConfigurationUnits,DC=AUSPR01A002,DC=PROD,DC=OUTLOOK,DC=COM' already exists. + CategoryInfo : NotSpecified: (:) [New-EmailAddressPolicy], ADObjectAlreadyExistsException + FullyQualifiedErrorId : [server=ME2PR01MB3668,RequestId=f176d112-7b20-484c-b912-6969dacc9252,TimeStamp=26/11/2020 12:33:47 AM] [FailureCategory=Cmdlet-ADObjectAlreadyExistsException] 3CFB6830,Microsoft.Exchange.Man agement.SystemConfigurationTasks.NewEmailAddressPolicy + PSComputerName : outlook.office365.com

 

How do I do this, so that I get my xxxxxxxx.wa.edu.au domain to be the one used by Teams or Groups as a first priority?

 

I am guessing it is to do with the priority number being reused is causing the error, but I want to do this without messing up my email system and so need some guidance.

 

Any experts want to lend me a hand?

 

Cheers

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...