{"id":650,"date":"2020-02-05T16:56:36","date_gmt":"2020-02-05T21:56:36","guid":{"rendered":"http:\/\/itblog.ldlnet.net\/?p=650"},"modified":"2020-02-05T16:56:36","modified_gmt":"2020-02-05T21:56:36","slug":"how-to-address-federation-trust-issues-in-hybrid-configuration-wizard-hcw","status":"publish","type":"post","link":"https:\/\/itblog.ldlnet.net\/index.php\/2020\/02\/05\/how-to-address-federation-trust-issues-in-hybrid-configuration-wizard-hcw\/","title":{"rendered":"How to address Federation Trust issues in Hybrid Configuration Wizard (HCW)"},"content":{"rendered":"\n<p>During my time as a PFE for Microsoft, I have encounted many issues with Federation in a Hybrid Exchange Deployment. Recently, the following support announcement came out and I wanted to share as I hope this can help others that may be having issues out there.<\/p>\n\n\n\n<p>One of the more common causes of HCW failures is the Federation Trust step for the Exchange on-premises organizations in Full hybrid configurations (Classic or Modern topologies).<br><br>Federation trust is a mandatory step in the on-premises Exchange organizations when configuring Full hybrid deployments, as this allows us to create organization relationships (for features like hybrid free\/busy or OWA\/EAS redirection) and sharing policies (1:1 hybrid calendar sharing). In Exchange Online multi-tenant organizations, federation trust is already in place.<br><br>Below is an illustration of an Exchange hybrid deployment where both the Exchange on-premises organization and the Exchange Online organization have a trust with Azure Authentication System (formerly called Microsoft Federation Gateway):<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/HybridFed.jpg\" alt=\"\" class=\"wp-image-651\" width=\"768\" height=\"349\" srcset=\"https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/HybridFed.jpg 750w, https:\/\/itblog.ldlnet.net\/wp-content\/uploads\/2020\/02\/HybridFed-300x136.jpg 300w\" sizes=\"auto, (max-width: 768px) 100vw, 768px\" \/><figcaption>Example of Hybrid Federation<\/figcaption><\/figure>\n\n\n\n<p>Before getting to our subject, let\u2019s quickly go over different hybrid configurations and Hybrid Configuration Wizard (HCW) &#8211; as this is the supported tool to configure hybrid deployments.<br> There are 2 flavors of hybrid configurations:<br> \u2022    <a href=\"https:\/\/docs.microsoft.com\/en-us\/exchange\/exchange-hybrid\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Classic hybrid (opens in a new tab)\">Classic hybrid<\/a><br> \u2022    <a href=\"https:\/\/docs.microsoft.com\/en-us\/exchange\/hybrid-deployment\/hybrid-agent\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"Modern hybrid (opens in a new tab)\">Modern hybrid<\/a><\/p>\n\n\n\n<p> At this time, each of those supports the following hybrid modes:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Full<\/li><li>Minimal (which further breaks down into\u2026)<ul><li>Express (a one-time sync)<\/li><li>\u201cActual minimal&#8221;<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>A quick overview of Full \/ Minimal \/ Express options, can be <a rel=\"noreferrer noopener\" aria-label=\"found here (opens in a new tab)\" href=\"https:\/\/techcommunity.microsoft.com\/t5\/exchange-team-blog\/new-exchange-online-migration-options\/ba-p\/606109\" target=\"_blank\">found here<\/a>. More info on HCW is <a rel=\"noreferrer noopener\" aria-label=\"here (opens in a new tab)\" href=\"https:\/\/docs.microsoft.com\/en-us\/exchange\/hybrid-configuration-wizard-faqs\" target=\"_blank\">here<\/a>.<br><br>As mentioned earlier, a federation trust is created by HCW only in <strong><em>Full Hybrid<\/em><\/strong>.<br><br>HCW logs are located at <strong><em>%appdata%\\Microsoft\\Exchange Hybrid Configuration<\/em><\/strong> on the machine from where HCW was ran. The easiest way to get to them is to press F12 in the HCW window to open the Diagnostic tools and from there you can Open Folder Logging or Open Log File directly.<br><br>When you have issues with federation trust, the log will usually show errors when one of the following cmdlets are executed:<br> <br>Set-FederationOrganizationIdentifier <br>or<br>Add-FederatedDomain (but can be other cmdlets as well).<br><br>Once you identified the exact cmdlet failing and where (Session=OnPremises \u2013 means Exchange Management Shell and Session=Tenant means Exchange Online PowerShell), you should copy-paste the failing command and try to execute it manually and see if that is failing as well (most likely it will). You can also open the shells from F12 Diagnostic tools windows in HCW.<br><br>In order to get more details on the error and to rule out this is not an issue with HCW itself, you will need to separately run the same command that threw exception in HCW log and add Verbose switch to get verbose details of the error and the serialized remote exception.<br><br>For example, if the Exchange server version is Exchange 2010, you will run the failing command with Verbose switch in Exchange Management Shell (EMS), see if that fails and then get the serialized remote exception.<br><br>Example: <\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"HCW Command Repro Example\">\nstart-transcript\n\nSet-FederatedOrganizationIdentifier -AccountNamespace <contoso.com> -DelegationFederationTrust 'Microsoft Federation Gateway' -Enabled:$true -VERBOSE\n\n$Error[0].Exception |fl -f\n\n$Error[0].Exception.SerializedRemoteException |fl \u2013f\n\nGet-FederatedOrganizationIdentifier |FL\n\nGet-FederationTrust |FL\n\nstop-transcript\n<\/pre>\n\n\n\n<p>If the Exchange Server version is Exchange 2013\/2016 and the above commands didn\u2019t show more details on the error, we can also try the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Open regular Windows PowerShell (blue background) on the Exchange Server 2013\/2016<\/li><li>Run command: add-pssnapin <em>exchange<\/em><\/li><li>Run command that gave error in HCW and add a Verbose switch<\/li><\/ul>\n\n\n\n<p>Example:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"HCW Command Repro Example Extended\">\nstart-transcript\n\nSet-FederatedOrganizationIdentifier -AccountNamespace <contoso.com> -DelegationFederationTrust 'Microsoft Federation Gateway' -Enabled:$true -DefaultDomain $null -VERBOSE \n\n$Error[0].Exception |fl -f\n\n$Error[0].Exception.SerializedRemoteException |fl \u2013f\n\nGet-FederatedOrganizationIdentifier |FL\n\nGet-FederationTrust |FL\n\nstop-transcript\n<\/pre>\n\n\n\n<p>Once you&#8217;ve gathered the verbose error \/ serialized exception, try to understand where it is failing (or provide it to Microsoft Support together with the HCW log).<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Common Errors with Remediation Steps<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Federation trust fails with &#8220;Object reference not set to an instance of an object&#8221;<\/li><\/ul>\n\n\n\n<p><em>This is a known old issue on Exchange 2016 CU7 servers, make sure your Exchange servers are updated to the latest CU.<\/em><\/p>\n\n\n\n<p>Full error in the HCW log:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Log Entries Extended\">\n2017.10.06 01:45:56.562 *ERROR* 10277 [Client=UX, Activity=Domain Ownership, Session=OnPremises, Cmdlet=Set-FederatedOrganizationIdentifier, Thread=21] FINISH Time=398.4ms Results=PowerShell failed to invoke 'Set-FederatedOrganizationIdentifier': Object reference not set to an instance of an object. An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object.\n\n2017.10.06 01:45:56.563 *ERROR* 10224 [Client=UX, Page=DomainProof, Thread=21] Microsoft.Online.CSE.Hybrid.PowerShell.PowerShellInvokeException: PowerShell failed to invoke 'Set-FederatedOrganizationIdentifier': Object reference not set to an instance of an object. An unexpected error has occurred and a Watson dump is being generated: Object reference not set to an instance of an object. ---> System.Management.Automation.RemoteException: Object reference not set to an instance of an object.\n<\/pre>\n\n\n\n<p><strong>Resolution:<\/strong> <a rel=\"noreferrer noopener\" aria-label=\"Install the latest CU for Exchange 2016 (opens in a new tab)\" href=\"https:\/\/support.microsoft.com\/en-gb\/help\/4051381\/office-365-hcw-fails-to-run-on-exchange-2016-cu7\" target=\"_blank\">Install the latest CU for Exchange 2016<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<ul class=\"wp-block-list\"><li>Federation fails with &#8220;Proof of domain ownership has failed&#8221;<\/li><\/ul>\n\n\n\n<p>Full error in the HCW log:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Log Entries Extended\">\n2019.07.16 17:53:14.750 10276 [Client=UX, Activity=Domain Ownership, Session=OnPremises, Cmdlet=Add-FederatedDomain, Thread=19] START Add-FederatedDomain -DomainName 'contoso.com'\n\n2019.07.06 17:53:15.375 10177 [Client=UX, Activity=Domain Ownership, Provider=OnPremises, Thread=19] PowerShell Error Record: {CategoryInfo={Activity=Add-FederatedDomain,Category=InvalidResult,Reason=DomainProofOwnershipException,TargetName=,TargetType=},ErrorDetails=,Exception=Proof of domain ownership has failed. Make sure that the TXT record for the specified domain is available in DNS. The format of the TXT record should be \"example.com IN TXT hash-value\" where \"example.com\" is the domain you want to configure for Federation and \"hash-value\" is the proof value generated with \"Get-FederatedDomainProof -DomainName example.com\".,FullyQualifiedErrorId=367408EF,Microsoft.Exchange.Management.SystemConfigurationTasks.AddFederatedDomain}\n<\/pre>\n\n\n\n<p><strong>Resolution:<\/strong><\/p>\n\n\n\n<p>\u2022 Check the TXT record for your domain(s) in HCW log or in Exchange Management Shell with command Get-FederatedDomainProof -DomainName <br>\u2022 See if it matches your published TXT record with either nslookup utility or by checking internet websites like  <a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/www.whatsmydns.net\/\" target=\"_blank\">https:\/\/www.whatsmydns.net\/<\/a>  put your domain in hostnames, type=txt, Nameservers &#8211; Authoritative<br><br>You would look for errors, missing records or unusual formatting (characters, spaces, quotes, TXT record split in half).<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<ul class=\"wp-block-list\"><li>Federation fails with &#8220;An unexpected error occurred on a receive&#8221; or &#8220;An unexpected error occurred on a send.&#8221;<\/li><\/ul>\n\n\n\n<p>Full error in the HCW log:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Log Entries Extended\">\n2018.10.10 17:03:31.277 *ERROR* [Activity=Domain Ownership, Session=OnPremises, Cmdlet=Set-FederatedOrganizationIdentifier] FINISH Time=64.3s Results=PowerShell failed to invoke 'Set-FederatedOrganizationIdentifier': An error occurred while attempting to provision Exchange to the Partner STS. Detailed Information \"An error occurred accessing Windows Live. Detailed information: \"The underlying connection was closed: An unexpected error occurred on a receive.\".\".\n<\/pre>\n\n\n\n<p><strong>Resolution:<\/strong><\/p>\n\n\n\n<p>Check outbound access from all your Exchange Servers to Microsoft Federation Gateway by browsing using Internet Explorer with&nbsp;<a href=\"https:\/\/docs.microsoft.com\/en-us\/sysinternals\/downloads\/pstools\" target=\"_blank\" rel=\"noreferrer noopener\">PSEXEC tool<\/a>&nbsp;(with -s and -i switches) from the Exchange Server (this will use Internet Explorer under System Account \/ Exchange Server Account).<\/p>\n\n\n\n<p>In this example, \u201cWindows Live\u201d is actually this exact URL:&nbsp;<a href=\"https:\/\/domains.live.com\/service\/managedelegation2.asmx\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/domains.live.com\/service\/managedelegation2.asmx<\/a><\/p>\n\n\n\n<p>From on-premises Exchange to Office 365, the Exchange 2010 MBX &amp; CAS or 2013 MBX (backend) or 2016 \/ 2019 would need outbound Internet access to the Microsoft Federation Gateway in addition to&nbsp;<a href=\"https:\/\/outlook.office365.com\/ews\/exchange.asmx\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/outlook.office365.com\/ews\/exchange.asmx<\/a><\/p>\n\n\n\n<p>Verify the machine\/system account can access these&nbsp;<strong>Microsoft Federation Gateway&nbsp;<\/strong>URLs:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/nexus.microsoftonline-p.com\/federationmetadata\/2006-12\/federationmetadata.xml\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/nexus.microsoftonline-p.com\/federationmetadata\/2006-12\/federationmetadata.xml<\/a>&nbsp;[&lt;&#8211; You should see an xml page.]<\/li><li><a href=\"https:\/\/login.microsoftonline.com\/extSTS.srf\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/login.microsoftonline.com\/extSTS.srf<\/a>&nbsp;[&lt;&#8211; You should see \u201cSorry, but we\u2019re having trouble signing you in\u201d.]<\/li><li><a href=\"https:\/\/domains.live.com\/service\/managedelegation2.asmx\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/domains.live.com\/service\/managedelegation2.asmx<\/a>&nbsp;[&lt;&#8211; You should see the operations supported by ManageDelegation2.]<\/li><\/ul>\n\n\n\n<p>For a complete list of O365 URL &amp; IP addresses, see these articles:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/docs.microsoft.com\/en-us\/office365\/enterprise\/urls-and-ip-address-ranges#exchange-online\" target=\"_blank\" rel=\"noreferrer noopener\">Office 365 URLs and IP address ranges \u2013 Exchange Online<\/a><\/li><li><a href=\"https:\/\/docs.microsoft.com\/en-us\/office365\/enterprise\/urls-and-ip-address-ranges#microsoft-365-common-and-office-online\" target=\"_blank\" rel=\"noreferrer noopener\">Office 365 URLs and IP address ranges \u2013 Common<\/a><\/li><li><a href=\"https:\/\/docs.microsoft.com\/en-us\/office365\/enterprise\/additional-office365-ip-addresses-and-urls\" target=\"_blank\" rel=\"noreferrer noopener\">Additional endpoints<\/a><\/li><\/ul>\n\n\n\n<p><strong>Note:<\/strong>&nbsp;If the Exchange requires a proxy server to access the Internet, specify the proxy server using &#8220;Set-ExchangeServer myExchange01 -InternetWebProxy http:\/\/myproxy:80&#8221;. Notice such proxy can&#8217;t require any user authentication for outbound Internet access, and the proxy must start with HTTP: and not HTTPS: (secure SSL).<\/p>\n\n\n\n<p>You can also set the proxy using netsh as well.<\/p>\n\n\n\n<p>set proxy proxy-server=&#8221;http=myproxy;https=sproxy:88&#8243; bypass-list=&#8221;*.contoso.com&#8221;&nbsp;<\/p>\n\n\n\n<p>In rare instances, you can use the machine\/system account to access the URLs from the browser, but Exchange cmdlets still failed with &#8220;Could not establish trust relationship for the SSL\/TLS secure channel.&#8221; If that happens, make sure the certificate authorities for the urls are installed at the&nbsp;<strong>Third-Party Root Certification Authorities<\/strong>&nbsp;of the machine local certificate location.<\/p>\n\n\n\n<p class=\"has-small-font-size\"><strong>REFERENCE:<\/strong><br><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/previous-versions\/windows\/it-pro\/windows-server-2008-R2-and-2008\/cc731131(v=ws.10)\" target=\"_blank\">Netsh Commands for Windows Hypertext Transfer Protocol (WINHTTP)<\/a><br><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/previous-versions\/office\/exchange-server-2010\/dd638083(v=exchg.141)\" target=\"_blank\">Firewall Considerations for Federated Delegation<\/a>\u00a0<br><br>Federated delegation features require that the Mailbox and Client Access servers in your organization have outbound access to the Internet by using HTTPS. You must allow outbound HTTPS access (port 443 for TCP) from all Exchange 2010 Mailbox and Client Access servers in the organization.<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<ul class=\"wp-block-list\"><li>There is no specific error \/ exception, in HCW log you would see it stops without any specific error.<\/li><\/ul>\n\n\n\n<p>Full error in the HCW log:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Log Entries Extended\">\n2019.02.14 12:56:21.658 [Activity=Domain Ownership, Session=OnPremises, Cmdlet=Get-FederatedOrganizationIdentifier] FINISH Time=133.0ms Results=1 FederatedOrganizationIdWithDomainStatus {AccountNamespace='FYDIBOHF25SPDLT.contoso.com' DelegationTrustLink='contoso.local\/Configuration\/Deleted Objects\/Microsoft Federation Gateway DEL:8e834abf-5154-4540-a3c6-5a5c614c6a06'Enabled=1 ExchangeVersion='0.10 (14.0.100.0)' Guid=2e1da884-9686-4221-8098-d34ced5a2f85 Id='Federation' Identity='Federation' IsValid=1 Name='Federation' ObjectState='Unchanged' WhenChanged='8\/11\/2015 5:35:58 PM' WhenChangedUTC='8\/11\/2015 2:35:58 PM' WhenCreated='10\/18\/2009 10:30:09 AM' WhenCreatedUTC='10\/18\/2009 6:30:09 AM'}\n2019.02.14 12:56:21.677 [Client=UX, Page=DomainProof] Unproven Domains: 1\n<\/pre>\n\n\n\n<p><strong>Resolution:<\/strong><\/p>\n\n\n\n<p>Look for orphaned federation trust:<\/p>\n\n\n\n<p>Get-FederatedOrganizationIdentifier | FL <br><br>or <br><br>in HCW log if you see something with &#8220;<strong>DEL<\/strong>&#8220;: &#8220;contoso.com\/Configuration\/Deleted Objects\/Microsoft Federation Gateway\/DEL: &lt;xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx>&#8221;. <br><br>Solution is to remove the orphaned federation trust and re-run HCW.<\/p>\n\n\n\n<p class=\"has-small-font-size\"><strong><em>Reference\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/support.microsoft.com\/en-us\/help\/2995731\/execution-of-the-set-federatedorganizationidentifier-cmdlet-has-thrown\" target=\"_blank\">here<\/a>.<\/em><\/strong><\/p>\n\n\n\n<p class=\"has-text-color has-small-font-size has-medium-pink-color\">NOTE: as a first step, you can try to run the command<strong>\u00a0<em>remove-federateddomain<\/em><\/strong>\u00a0with the switch\u00a0<strong>-Force<\/strong>. Also, you don&#8217;t need to recreate federation trust manually, just re-run HCW (this will recreate federation trust for us)<\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<ul class=\"wp-block-list\"><li>Federation Trust\u00a0fails with &#8220;InternalError InternalError: Internal error.&#8221;.&#8221;.&#8221;&#8221;<\/li><\/ul>\n\n\n\n<p>Full error in the HCW log:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Log Entries Extended\">\n2019.08.23 07:45:22.914         10276 [Client=UX, Activity=Domain Ownership, Session=OnPremises, Cmdlet=Set-FederatedOrganizationIdentifier, Thread=20] START Set-FederatedOrganizationIdentifier -AccountNamespace 'contoso.com' -DelegationFederationTrust 'Microsoft Federation Gateway' -Enabled: $true -DefaultDomain $null\n\n2019.08.23 07:45:23.239 *ERROR* 10277 [Client=UX, Activity=Domain Ownership, Session=OnPremises, Cmdlet=Set-FederatedOrganizationIdentifier, Thread=20] FINISH Time=325.0ms Results=PowerShell failed to invoke 'Set-FederatedOrganizationIdentifier': An error occurred while attempting to provision Exchange to the Partner STS.  Detailed Information \"An unexpected result was received from Windows Live.  Detailed information: \"InternalError InternalError: Internal error.\".\". {CategoryInfo={Activity=[System.String] Set-FederatedOrganizationIdentifier,Category=[System.Management.Automation.ErrorCategory] InvalidResult,Reason=[System.String]\n<\/pre>\n\n\n\n<p><strong>Resolution:<\/strong><\/p>\n\n\n\n<p>Open request with Microsoft Support or check if any Service Incident is published. <strong><em>Please\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/support.microsoft.com\/en-us\/help\/3063582\/-internalerror-internalerror-internal-error-when-you-run-set-federated\" target=\"_blank\">see this<\/a> for more information.<\/em><\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<ul class=\"wp-block-list\"><li>Federation trust fails with <strong>&#8220;1007 Access Denied&#8221;<\/strong><\/li><\/ul>\n\n\n\n<p>Full error in the HCW log:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Log Entries Extended\">\nSet-FederatedOrganizationIdentifier,Category=[System.Management.Automation.ErrorCategory] InvalidResult,Reason=[System.String] ProvisioningFederatedExchangeException,TargetName=[System.String] ,TargetType=[System.String] },ErrorDetails=,Exception=[System.Management.Automation.RemoteException] An error occurred while attempting to provision Exchange to the Partner STS.  Detailed Information \"An unexpected result was received from Windows Live.  Detailed information: \"1007 AccessDenied: Access Denied.\".\"\n<\/pre>\n\n\n\n<p><strong>Resolution:<\/strong><\/p>\n\n\n\n<p>&#8220;1007 Access Denied&#8221; error is usually when we have issues with:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Windows Time on the Exchange Server. <strong><em>See\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/support.microsoft.com\/en-us\/help\/3107293\/1007-accessdenied-or-ensure-your-system-time-is-correct-error-when-you\" target=\"_blank\">this article<\/a>\u00a0or\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/support.microsoft.com\/en-us\/help\/816042\/how-to-configure-an-authoritative-time-server-in-windows-server\" target=\"_blank\">this article<\/a>.<\/em><\/strong><\/li><li>Outdated federation trust (for example, federation trust certificate expired) and in this case you would remove federation trust by following\u00a0<strong><em><a rel=\"noreferrer noopener\" href=\"https:\/\/docs.microsoft.com\/en-us\/previous-versions\/exchange-server\/exchange-160\/mt779252(v=exchg.160)?redirectedfrom=MSDN#ReplaceExpired\" target=\"_blank\">these steps<\/a>.<\/em><\/strong><\/li><\/ol>\n\n\n\n<p>If the federation trust certificate is not found on any of the servers, then proceed with resolution from the next error.<br><br>As an example, from one HCW log, there seems to be this federation trust certificate expired on 05\/13\/2019: <\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Log Entries Extended\">\nOrgCertificate=[Subject] CN=Federation [Issuer] CN=Federation [Serial Number] 4E91XXXXXXXXXXXXXXXXXXXXXXXXXXXX [Not Before] 5\/13\/2014 11:21:36 AM [Not After] 5\/13\/2019 11:21:36 AM\n<\/pre>\n\n\n\n<hr class=\"wp-block-separator is-style-wide\"\/>\n\n\n\n<ul class=\"wp-block-list\"><li> Federation trust fails with \u201cFederation Certificate cannot be found\u201d <\/li><\/ul>\n\n\n\n<p>Full error in the HCW log:<\/p>\n\n\n<pre class=\"lang:PowerShell nums:False\" title=\"Log Entries Extended\">\n2019.11.22 14:40:32.569 *ERROR* 10277 [Client=UX, Activity=Domain Ownership, Session=OnPremises, Cmdlet=Get-FederatedDomainProof, Thread=6] FINISH Time=125.1ms Results=PowerShell failed to invoke Get-FederatedDomainProof: Federation certificate with the thumbprint \u201803650FFAF05E83E3B007DF3473CB5753F5C4459\u2019cannot be found.\n<\/pre>\n\n\n\n<p><strong>Resolution:<\/strong><\/p>\n\n\n\n<p>Follow the procedure\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/support.microsoft.com\/help\/3215261\/federation-certificate-with-the-thumbprint-cannot-be-found-error-when\" target=\"_blank\"><strong><em>her<\/em><\/strong>e<\/a>\u00a0to manually cleanup the federation trust from AD. Once this is done, re-run the HCW to re-create it automatically. <\/p>\n\n\n\n<h2 class=\"has-text-align-center wp-block-heading\">KEEP TROUBLESHOOTING!<br>REMAIN VIGILANT USING <em>FOCUSED INTENT, NEVER EMOTIONALIZING<\/em> (FINE)! <\/h2>\n\n\n\n<p class=\"has-small-font-size\"><strong>REFERENCE:<\/strong><br><a href=\"https:\/\/techcommunity.microsoft.com\/t5\/exchange-team-blog\/how-to-address-federation-trust-issues-in-hybrid-configuration\/ba-p\/1144285\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"How To Address Federation Trust Issues using the Hybrid Configuration Wizard (opens in a new tab)\">How To Address Federation Trust Issues using the Hybrid Configuration Wizard<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>During my time as a PFE for Microsoft, I have encounted many issues with Federation in a Hybrid Exchange Deployment. Recently, the<\/p>\n<p class=\"link-more\"><a class=\"myButt \" href=\"https:\/\/itblog.ldlnet.net\/index.php\/2020\/02\/05\/how-to-address-federation-trust-issues-in-hybrid-configuration-wizard-hcw\/\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":161,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2,194],"tags":[9,216,150,149,151,78,147,72,71],"class_list":["post-650","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-exchange","category-general","category-office365","tag-exchange","tag-exchange-2010","tag-exchange-2013","tag-exchange-2016","tag-exchange-2019","tag-exchange-onlilne","tag-exchange-setup","tag-hcw","tag-hybrid","odd"],"_links":{"self":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/650","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/comments?post=650"}],"version-history":[{"count":5,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/650\/revisions"}],"predecessor-version":[{"id":656,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/posts\/650\/revisions\/656"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media\/161"}],"wp:attachment":[{"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/media?parent=650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/categories?post=650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itblog.ldlnet.net\/index.php\/wp-json\/wp\/v2\/tags?post=650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}