MS365 Outlook startup issues only on RDS - Autodiscovery, "Cannot open the Outlook Window"

AlexS 5 Reputation points
2023-06-20T15:00:15.0566667+00:00

On our on-premise terminal we have RDS on wich we installed Microsoft 365 with E3 licence. RDS has an Active Directory identified by .local domain and MS365 has AAD identified by custom domain.
Outside RDS there is no issues, everything works fine.
But on RDS few times a month Outlook doesnt start and shows message: "Cannot start Microsoft Outlook. Cannot open the Outlook window". It happens not for all users.
When we are trying to create new profile in Outlook safe mode it shows message: "Something went wrong and Outlook couldn't set up your account"
Issue resolves after RDS reboot but after few days everything happens again.

Actions taken:

  1. Tried to use SaRA but it only shows that modern authentication is configured for our tenant and it needs to be turned on in Outlook. Turning it on with SaRA changes nothing same as configuring registry keys described here: https://learn.microsoft.com/pl-pl/microsoft-365/admin/security-and-compliance/enable-modern-authentication?view=o365-worldwide
  2. Tried to troubleshoot Autodiscovery with RCA Outlook Connectivity Test. Few weeks ago it was failing with POST requests to our domain even though our DNS CNAME value was configured correctly. Yet we still changed our webserver responses for autodiscovery.domain.com and domain.com/autodiscovery to 404 and updated ssl certs. Now RCA test succeeds but we noticed that it goes straight to https://autodiscover-s.outlook.com/Autodiscover/Autodiscover.xml. Now test doesnt mention our custom domain at all.
    rca_test_200623
  3. When performing Autoconfiguration test on Outlook (ctrl + right click on Outlook tray icon) from RDS - Autodiscovery doesnt resolveautodiscovery_test_200623
  4. We also tried to configure registry keys for AutoDiscovery from link: https://support.microsoft.com/en-us/office/something-went-wrong-and-outlook-couldn-t-set-up-your-account-b2d5e011-f801-489f-a908-e0318e172767
    Didnt help.
  5. We also looked up Identity registry keys and it is set to local Active Directory domain UPN. Not sure if thats could cause any trouble.
    ADUserName

Modern authentication works fine outside RDS. We are not sure whether autodiscovery issues are cause or an effect of Outlook not being able to open. Maybe there is something wrong in local AD configuration.

If you have any suggestions please reply. Thank you in advance.

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,185 questions
Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Windows for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
Outlook | Windows | Classic Outlook for Windows | For business
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,766 Reputation points
    2023-06-21T12:08:02.63+00:00

    Hello Alex,

    Thank you for your question and for reaching out with your question today.

    Based on the information provided, there are a few potential areas to investigate and troubleshoot the issue with Outlook not starting correctly on the RDS (Remote Desktop Services) server. Here are some suggestions:

    1. DNS configuration:
      • Verify that the DNS settings on the RDS server are correctly configured to resolve the autodiscover domain and other necessary records.
      • Ensure that the autodiscover CNAME and other required DNS records (e.g., MX, SRV) are correctly set up for your custom domain.
    2. Certificate configuration:
      • Check if the SSL certificate used for the autodiscover URL and other related services on the RDS server is valid and properly installed. Ensure it includes the correct subject alternative names (SANs) for your custom domain.
      • Confirm that the certificate chain is complete and trusted by the RDS server and client machines accessing Outlook.
    3. Exchange and Active Directory configuration:
      • Review the Exchange Server configuration for the autodiscover service, especially the virtual directories and autodiscover settings.
      • Check the Active Directory user attributes for the affected users, such as the primary SMTP address, proxy addresses, and UPN (User Principal Name). Ensure they match the custom domain configured in Microsoft 365 and Exchange.
      • Verify that the RDS server is correctly joined to the Active Directory domain and can access the necessary domain services.
    4. Outlook profile and authentication settings:
      • If possible, test creating a new Outlook profile on the RDS server for an affected user and ensure the correct autodiscover settings are applied.
      • Confirm that the Outlook clients on the RDS server are configured to use the correct authentication method (e.g., modern authentication) and that the necessary registry keys are set correctly.
    5. Logs and diagnostics:
      • Enable logging for Outlook on the RDS server and review the log files to identify any specific error messages or warnings related to the issue.
      • Monitor the event logs on the RDS server, Exchange Server, and Active Directory for any relevant events or errors occurring around the time of the Outlook startup issue.
    6. Microsoft Support:
      • If the issue persists and you have an active Microsoft 365 subscription, consider reaching out to Microsoft Support for further assistance. They can provide more specific guidance based on your environment and access additional diagnostic tools.

    Please note that the suggestions above are general recommendations, and it's important to thoroughly analyze and adapt them to your specific environment. It may also be beneficial to involve your IT team or a qualified consultant who can perform a detailed investigation of your setup and help identify the root cause of the Outlook startup issue on the RDS server.

    I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.

    If the reply was helpful, please don’t forget to upvote or accept as answer.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.