Skip to content

Commit b1b837c

Browse files
Merge pull request #10990 from brianreidc7/patch-6
Adding the generic autodiscover URI to the list
2 parents 51f8635 + 67a3f6d commit b1b837c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

microsoft-365/enterprise/configure-exchange-server-for-hybrid-modern-authentication.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,17 @@ Run the commands that assign your on-premises web service URLs as Microsoft Entr
130130
Get-MgServicePrincipal -Filter "AppId eq '00000002-0000-0ff1-ce00-000000000000'" | select -ExpandProperty ServicePrincipalNames
131131
```
132132

133-
Note down the output of this command, which should include an `https://*autodiscover.yourdomain.com*` and `https://*mail.yourdomain.com*` URL, but mostly consist of SPNs that begin with `00000002-0000-0ff1-ce00-000000000000/`. If there are `https://` URLs from your on-premises that are missing, those specific records should be added to this list.
133+
Take note of (and screenshot for later comparison) the output of this command, which should include an `https://*autodiscover.yourdomain.com*` and `https://*mail.yourdomain.com*` URL, but mostly consist of SPNs that begin with `00000002-0000-0ff1-ce00-000000000000/`. If there are `https://` URLs from your on-premises Exchange Server organization that are missing, those specific records should be added to this list.
134134

135-
5. If you don't see your internal and external `MAPI/HTTP`, `EWS`, `ActiveSync`, `OAB`, and `AutoDiscover` records in this list, you must add them. Use the following command to add all URLs that are missing. In our example, the URLs that are added are `mail.corp.contoso.com` and `owa.contoso.com`. Make sure that they're replaced by the URLs that are configured in your environment.
135+
5. If you don't see your internal and external MAPI/HTTP, EWS, ActiveSync, OAB, and Autodiscover records in this list, you must add them using the command below (the example URLs are `mail.corp.contoso.com` and `owa.contoso.com`, but you'd **replace the example URLs with your own**). Ensure that the generic AutoDiscover record for your domain (for example `autodiscover.contoso.com`) is included as well:
136136

137137
```powershell
138-
$x = Get-MgServicePrincipal -Filter "AppId eq '00000002-0000-0ff1-ce00-000000000000'"
139-
$x.ServicePrincipalNames += "https://mail.corp.contoso.com/"
140-
$x.ServicePrincipalNames += "https://owa.contoso.com/"
141-
Update-MgServicePrincipal -ServicePrincipalId $x.Id -ServicePrincipalNames $x.ServicePrincipalNames
142-
```
138+
$x= Get-MsolServicePrincipal -AppPrincipalId 00000002-0000-0ff1-ce00-000000000000
139+
$x.ServicePrincipalnames.Add("https://mail.corp.contoso.com/")
140+
$x.ServicePrincipalnames.Add("https://owa.contoso.com/")
141+
$x.ServicePrincipalnames.Add("https://autodiscover.contoso.com/")
142+
Set-MSOLServicePrincipal -AppPrincipalId 00000002-0000-0ff1-ce00-000000000000 -ServicePrincipalNames $x.ServicePrincipalNames
143+
```
143144

144145
6. Verify that your new records were added by running the `Get-MgServicePrincipal` command from step 4 again, and validate the output. Compare the list from before to the new list of SPNs. You might also note down the new list for your records. If you're successful, you should see the two new URLs in the list. Going by our example, the list of SPNs now includes the specific URLs `https://mail.corp.contoso.com` and `https://owa.contoso.com`.
145146

0 commit comments

Comments
 (0)