C:\Windows\system32> PS>Set-FederatedOrganizationIdentifier -DelegationFederationTrust "Microsoft Federation Gateway" -AccountNamespace "domain.com" -Enabled $true 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 send.".". + CategoryInfo : InvalidResult: (:) [Set-FederatedOrganizationIdentifier], ProvisioningFederatedExchangeException + FullyQualifiedErrorId : [Server=exchange server name,RequestId=6ba0dd07-459a-4576-a311-c0d71a97ce10,TimeStamp=3/15/2022 12:51:06 PM] [FailureCategory=Cmdlet-ProvisioningFederatedExchangeException] 6FF530AF,Microsoft.Exchange.Management.SystemConfigurationTasks.SetFederatedOrganizationIdentifier + PSComputerName : exchange server name 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 send.".". + CategoryInfo : InvalidResult: (:) [Set-FederatedOrganizationIdentifier], ProvisioningFederatedExchangeException + FullyQualifiedErrorId : [Server=exchange server name,RequestId=6ba0dd07-459a-4576-a311-c0d71a97ce10,TimeStamp=3/15/2022 12:51:06 PM] [FailureCategory=Cmdlet-ProvisioningFederatedExchangeException] 6FF530AF,Microsoft.Exchange.Management.SystemC onfigurationTasks.SetFederatedOrganizationIdentifier + PSComputerName : exchange server name C:\Windows\system32> PS>$Error[0].Exception |fl -f SerializedRemoteException : Microsoft.Exchange.Management.SystemConfigurationTasks.ProvisioningFederatedExchangeException: 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 send.".". ---> Microsoft.Exchange.Management.FederationProvisioning.LiveDomainServicesException: An error occurred accessing Windows Live. Detailed information: "The underlying connection was closed: An unexpected error occurred on a send.". ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: The handshake failed due to an unexpected packet format. at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception stack trace --- at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) at Microsoft.Exchange.SoapWebClient.CustomSoapHttpClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Microsoft.Exchange.Management.ManageDelegation2.ManageDelegation2.CreateAppId(String uri, Property[] properties) at Microsoft.Exchange.Management.FederationProvisioning.ManageDelegation2Client.<>c__DisplayClass6_0.b__0() at Microsoft.Exchange.Management.FederationProvisioning.ManageDelegationClient.ExecuteAndRetry(String description, WebMethodDelegate webMethod) at Microsoft.Exchange.Management.FederationProvisioning.ManageDelegationClient.ExecuteAndHandleError(String description, WebMethodDelegate webMethod) --- End of inner exception stack trace --- at Microsoft.Exchange.Management.FederationProvisioning.ManageDelegationClient.ExecuteAndHandleError(String description, WebMethodDelegate webMethod) at Microsoft.Exchange.Management.FederationProvisioning.ManageDelegation2Client.CreateAppId(String uri) at Microsoft.Exchange.Management.SystemConfigurationTasks.LiveFederationProvision2.OnSetFederatedOrganizationIdentifier(FederationTrust federationTrust, SmtpDomain accountNamespace) --- End of inner exception stack trace --- at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl) at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target) at Microsoft.Exchange.Management.SystemConfigurationTasks.SetFederatedOrganizationIdentifier.ProvisionSTS() at Microsoft.Exchange.Management.SystemConfigurationTasks.SetFederatedOrganizationIdentifier.InternalProcessRecord() at Microsoft.Exchange.Configuration.Tasks.Task.b__91_1() at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed) SerializedRemoteInvocationInfo : System.Management.Automation.InvocationInfo ErrorRecord : 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 send.".". WasThrownFromThrowStatement : False Message : 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 send.".". Data : {} InnerException : TargetSite : StackTrace : HelpLink : Source : HResult : -2146233087 C:\Windows\system32> PS>$Error[0].Exception.SerializedRemoteException |fl -f Details : An error occurred accessing Windows Live. Detailed information: "The underlying connection was closed: An unexpected error occurred on a send.". Message : 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 send.".". FormatProvider : LocalizedString : 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 send.".". ErrorCode : -2146233088 StringId : ExB5F48C StringFormatParameters : {An error occurred accessing Windows Live. Detailed information: "The underlying connection was closed: An unexpected error occurred on a send.".} Data : {} InnerException : Microsoft.Exchange.Management.FederationProvisioning.LiveDomainServicesException: An error occurred accessing Windows Live. Detailed information: "The underlying connection was closed: An unexpected error occurred on a send.". ---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: The handshake failed due to an unexpected packet format. at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception stack trace --- at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request) at Microsoft.Exchange.SoapWebClient.CustomSoapHttpClientProtocol.GetWebResponse(WebRequest request) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at Microsoft.Exchange.Management.ManageDelegation2.ManageDelegation2.CreateAppId(String uri, Property[] properties) at Microsoft.Exchange.Management.FederationProvisioning.ManageDelegation2Client.<>c__DisplayClass6_0.b__0() at Microsoft.Exchange.Management.FederationProvisioning.ManageDelegationClient.ExecuteAndRetry(String description, WebMethodDelegate webMethod) at Microsoft.Exchange.Management.FederationProvisioning.ManageDelegationClient.ExecuteAndHandleError(String description, WebMethodDelegate webMethod) --- End of inner exception stack trace --- at Microsoft.Exchange.Management.FederationProvisioning.ManageDelegationClient.ExecuteAndHandleError(String description, WebMethodDelegate webMethod) at Microsoft.Exchange.Management.FederationProvisioning.ManageDelegation2Client.CreateAppId(String uri) at Microsoft.Exchange.Management.SystemConfigurationTasks.LiveFederationProvision2.OnSetFederatedOrganizationIdentifier(FederationTrust federationTrust, SmtpDomain accountNamespace) TargetSite : StackTrace : at Microsoft.Exchange.Configuration.Tasks.Task.ThrowError(Exception exception, ErrorCategory errorCategory, Object target, String helpUrl) at Microsoft.Exchange.Configuration.Tasks.Task.WriteError(Exception exception, ErrorCategory category, Object target) at Microsoft.Exchange.Management.SystemConfigurationTasks.SetFederatedOrganizationIdentifier.ProvisionSTS() at Microsoft.Exchange.Management.SystemConfigurationTasks.SetFederatedOrganizationIdentifier.InternalProcessRecord() at Microsoft.Exchange.Configuration.Tasks.Task.b__91_1() at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePipelineIfFailed) HelpLink : Source : Microsoft.Exchange.Configuration.ObjectModel HResult : -2146233088 C:\Windows\system32> PS>Get-FederatedOrganizationIdentifier |FL RunspaceId : 347c85ff-f6c7-4a85-a908-95f010aa9e5c AccountNamespace : Domains : DefaultDomain : Enabled : False OrganizationContact : DelegationTrustLink : Identity : Federation IsValid : True ExchangeVersion : 0.10 (14.0.100.0) Name : Federation DistinguishedName : Guid : 0ac8c98c-932c-4adf-b7ca-cdc835720e93 ObjectCategory : ObjectClass : {top, msExchFedOrgId} WhenChanged : 10/1/2020 10:49:33 PM WhenCreated : 2/24/2012 1:23:12 PM WhenChangedUTC : 10/1/2020 6:49:33 PM WhenCreatedUTC : 2/24/2012 9:23:12 AM OrganizationId : Id : Federation OriginatingServer : ObjectState : Unchanged C:\Windows\system32> PS>Stop-Transcript ********************** Windows PowerShell transcript end End time: 20220315165136 **********************