We finished the move to Microsoft 365 last week. Outlook on domain joined PCs shows a certificate warning and a redirect prompt, and new profiles fail with an Autodiscover error. Outside the office it works.
Domain joined PCs look for a Service Connection Point in Active Directory first, and that record still points to your old on premises server. Outside the office there is no AD, so Outlook uses DNS and works. Check these items:
1. DNS. The autodiscover record for your domain must be a CNAME that points to autodiscover.outlook.com. Check the internal DNS zone too, because an old internal record wins inside the office.
2. SCP. If you no longer host Exchange on premises, remove the SCP from Active Directory. If you still keep a hybrid server, leave it in place and follow the hybrid guidance.
3. Quick test on one PC. Add the registry value ExcludeScpLookup with the value 1 under HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\AutoDiscover. If Outlook connects after that, the SCP is the cause.
4. Test with the Test E-mail AutoConfiguration option. Hold Ctrl, right click the Outlook icon in the system tray and select it. It shows the exact URLs that fail.
5. Microsoft Remote Connectivity Analyzer also tests Autodiscover for Microsoft 365 from outside your network.
The internal zone had an old autodiscover A record to the old server. I removed it and the warning is gone on my test PC.
Good find. Wait for the DNS cache to expire on the other PCs or clear it with ipconfig /flushdns. Then create a new profile on one PC to confirm that the account sets up without prompts.
All PCs are fine after the cache cleared. Thanks.