Hi @Jobish George,
Welcome to the Microsoft Q&A platform!
According to your description, you encountered the error "Object reference not set to an instance of an object." and Outlook cannot connect externally and keeps prompting for a password due to deleting Exchange Server 2019 and then restoring to Exchange Server 2016.
I suggest you try the following methods to troubleshoot the error:
- Autodiscover problems usually stem from configuration problems. The solution is as follows:
- Check virtual directory settings:
Make sure the Autodiscover virtual directory is configured correctly. Use the Exchange Management Shell (EMS) to verify the settings:
Get-AutodiscoverVirtualDirectory |fl Name, InternalUrl, ExternalUrl, Identity
- Check the Service Connection Point (SCP):
Make sure the SCP points to the correct server and URL. Use:
Get-ClientAccessService |fl AutoDiscoverServiceInternalUri
- IIS reset and service restart:
Perform IIS reset and restart related Exchange services:
iisreset
Restart service MSExchangeAutodiscoverAppPool
Restart service MSExchangeAutodiscover
- If Outlook cannot connect externally, you can try the following methods:
- Check external URLs:
Verify all external URLs for OWA, ECP, EWS, OAB, and Autodiscover. They should point to the correct server and should be externally accessible:
Get-ClientAccessService |fl name,AutodiscoverServiceInternalUri
Get-OwaVirtualDirectory |fl name,ExternalUrl
Get-EcpVirtualDirectory |fl name,ExternalUrl
Get-WebServicesVirtualDirectory |fl name,ExternalUrl
Get-OabVirtualDirectory |fl name,ExternalUrl
- Check authentication settings:
Make sure the authentication settings on the virtual directories are correct, especially Outlook Anywhere and Autodiscover.
- Test connectivity:
Use Microsoft Remote Connectivity Analyzer to test connectivity and diagnose issues: Microsoft Remote Connectivity Analyzer.
- Clear DNS cache:
Clear the DNS cache on the client computer and the server:
ipconfig /flushdns
Clear-DnsClientCache
- Password hint problem
- Outlook profile:
Sometimes, creating a new Outlook profile can solve persistent password hint problems.
- Cached credentials:
Clear the credentials stored in Windows Credential Manager.
- Check Autodiscover configuration:
Make sure that the DNS records for Autodiscover are configured correctly and that the SSL certificate is properly installed on the Exchange server.
Please feel free to contact me if you have any queries.
Best,
Jake Zhang