แก้ไขข้อผิดพลาด: ตรวจสอบ Hybrid Agent สำหรับการใช้งาน Exchange
เมื่อเลือก Exchange Modern Hybrid Topology ใน Hybrid Configuration Wizard (HCW) Hybrid Agent จะดาวน์โหลดและลงทะเบียนสำเร็จ แต่ไม่ผ่านขั้นตอนการตรวจสอบ เหตุใดจึงเกิดเหตุการณ์เช่นนี้ และวิธีแก้ไขข้อผิดพลาดนี้คืออะไร ในบทความนี้ คุณจะได้เรียนรู้วิธีแก้ไขข้อผิดพลาด Validate Hybrid Agent สำหรับการใช้งาน Exchange
ข้อผิดพลาด: ตรวจสอบ Hybrid Agent สำหรับการใช้งาน Exchange
เรียกใช้ตัวช่วยสร้างการกำหนดค่าไฮบริดและดำเนินการตามตัวช่วยสร้าง เราจะเลือก ใช้ Exchange Modern Hybrid Topology
การตั้งค่า Hybrid Agent จะเริ่มดาวน์โหลด ติดตั้ง และลงทะเบียน Hybrid Agent แต่ขั้นตอนสุดท้ายไม่สำเร็จ ซึ่งก็คือการตรวจสอบความถูกต้องของ Hybrid Agent สำหรับการใช้งาน Exchange
ไปที่ตำแหน่งบันทึกการกำหนดค่าไฮบริดบนเซิร์ฟเวอร์กล่องจดหมายภายในองค์กร
%UserProfile%\AppData\Roaming\Microsoft\Exchange Hybrid Configurationเปิดไฟล์ .log ล่าสุดโดยใช้แอปพลิเคชัน Notepad หรือ Notepad++
ไปที่ด้านล่างและค้นหาข้อผิดพลาด
นี่เป็นข้อผิดพลาดในบันทึก
*ERROR* 10349 [Client=UX, Page=HybridConnectorInstall, Thread=14]
The call to 'net.tcp://gv1p195mb2477.eurp195.prod.outlook.com:9821/Microsoft.Exchange.MailboxReplicationService GV1P195MB2477.EURP195.PROD.OUTLOOK.COM (15.20.8158.18 ServerCaps:FFFFFFFF, ProxyCaps:1FFFFFFFFFFFFFFFC7DD2DFDBF5FFFFFCB07EFFF, MailboxCaps:, legacyCaps:FFFFFFFF)' failed.
Error details: The call to 'https://9da117ab-de19-4430-851a-2cf019a7a250.resource.mailboxmigration.his.msappproxy.net/EWS/mrsproxy.svc' failed. Error details: The HTTP request is unauthorized with client authentication scheme 'Negotiate'.
The authentication header received from the server was 'Negotiate, NTLM'..., System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: The call to 'https://9da117ab-de19-4430-851a-2cf019a7a250.resource.mailboxmigration.his.msappproxy.net/EWS/mrsproxy.svc' failed.
Error details: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate, NTLM'.. (Fault Detail is equal to An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.ServiceModel.FaultException`1[Microsoft.Exchange.MailboxReplicationService.MailboxReplicationServiceFault]: The call to 'https://9da117ab-de19-4430-851a-2cf019a7a250.resource.mailboxmigration.his.msappproxy.net/EWS/mrsproxy.svc' failed.
Error details: The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'Negotiate, NTLM'..
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(MethodInfo targetMethod, Object[] args)
at generatedProxy_4.AttemptConnectToMRSProxy(String, Guid, String, String, String)
at Microsoft.Exchange.MailboxReplicationService.MailboxReplicationService.<>c__DisplayClass44_0.<Microsoft.Exchange.MailboxReplicationService.IMailboxReplicationService.AttemptConnectToMRSProxy>b__2(IMailboxReplicationService client)
at Microsoft.Exchange.MailboxReplicationService.MailboxReplicationService.CallNonInteractiveProcess(Action`1 action)
at Microsoft.Exchange.MailboxReplicationService.MailboxReplicationService.RouteToOtherWorkersIfNeeded(MRSRequestType requestType, RequestWorkloadType workloadType, Action`1 action)
at Microsoft.Exchange.MailboxReplicationService.MailboxReplicationService.<>c__DisplayClass44_0.<Microsoft.Exchange.MailboxReplicationService.IMailboxReplicationService.AttemptConnectToMRSProxy>b__0()
at Microsoft.Exchange.MailboxReplicationService.MailboxReplicationService.ForwardKnownExceptions[TFault](Action operation, Func`2 ignoreExceptionOperation)
at Microsoft.Exchange.MailboxReplicationService.MailboxReplicationService.Microsoft.Exchange.MailboxReplicationService.IMailboxReplicationService.AttemptConnectToMRSProxy(String remoteHostName, Guid mbxGuid, String username, String password, String domain)
at lambda_method171862(Closure, Object, Object[], Object[])
at CoreWCF.Dispatcher.SyncMethodInvoker.InvokeAsync(Object instance, Object[] inputs)
at CoreWCF.Dispatcher.DispatchOperationRuntime.<>c__DisplayClass71_0.<<InvokeAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at CoreWCF.Dispatcher.DispatchOperationRuntime.InvokeAsync(MessageRpc rpc)
at CoreWCF.Dispatcher.DispatchOperationRuntime.InvokeAsync(MessageRpc rpc)
at CoreWCF.Dispatcher.ImmutableDispatchRuntime.ProcessMessageAsync(MessageRpc rpc)
at CoreWCF.Dispatcher.MessageRpc.ProcessAsync(Boolean isOperationContextSet)).เหตุใดเราจึงได้รับข้อผิดพลาดนี้ และวิธีแก้ไขปัญหาสำหรับ Hybrid Agent ที่ไม่ตรวจสอบการใช้งาน Exchange คืออะไร
แก้ไขข้อผิดพลาด: ตรวจสอบ Hybrid Agent สำหรับการใช้งาน Exchange
คุณได้รับข้อผิดพลาดนี้เนื่องจากมีการเปิดใช้งานการป้องกันแบบขยายบน Exchange Server สิ่งนี้จะไม่ทำงานกับโทโพโลยีไฮบริดสมัยใหม่ของ Exchange
วิธีแก้ไขคือเลือกระหว่างวิธีใดวิธีหนึ่ง:
- ใช้ Classic Hybrid Topology ในตัวช่วยสร้างการกำหนดค่าไฮบริดและดำเนินการเพิ่มเติม*
- ปิดใช้งานการป้องกันแบบขยายเฉพาะบนไดเร็กทอรีเสมือน Front-End EWS (หรือทั้งหมดแต่ไม่แนะนำ) เพื่อตั้งค่าโทโพโลยีสมัยใหม่แบบไฮบริดในตัวช่วยสร้างการกำหนดค่าแบบไฮบริด
*คุณสามารถสลับระหว่าง Hybrid Modern และ Classic Hybrid ได้ตลอดเวลาในตัวช่วยสร้างการกำหนดค่าไฮบริด:
- สลับจาก Exchange Modern Hybrid เป็น Exchange Classic Hybrid
- สลับจาก Exchange Classic Hybrid เป็น Exchange Modern Hybrid
ลองดูวิธีที่ 2 และปิดการใช้งาน Extended Protection บนไดเร็กทอรีเสมือน Front-End EWS เท่านั้น
ปิดใช้งานการป้องกันเพิ่มเติมบน Exchange Server
ดาวน์โหลดสคริปต์ ExchangeExtensedProtectionManagement.ps1 PowerShell และบันทึกไว้ในโฟลเดอร์ C:\scripts
ใช้พารามิเตอร์ -ExcludeVirtualDirectorie เพื่อข้ามการเปิดใช้งาน Extended Protection บนไดเรกทอรีเสมือนของ Front-End EWS บน Exchange Servers ซึ่งได้รับการเผยแพร่โดยใช้ Modern Hybrid Agent
หมายเหตุ: ต้องไม่เปิดใช้งานการป้องกันเพิ่มเติมในไดเรกทอรีเสมือนของ Front-End EWS บน Exchange Servers ที่เผยแพร่ผ่าน Hybrid Agent
หากคุณต้องการปรับใช้ Hybrid Agent บน Exchange Server เดียว ให้รันคำสั่งด้านล่าง
C:\scripts\.\ExchangeExtendedProtectionManagement.ps1 -ExchangeServerNames "EX03-2019" -ExcludeVirtualDirectories "EWSFrontEnd" -Confirm:$falseหากคุณต้องการปรับใช้ Hybrid Agent บนเซิร์ฟเวอร์ Exchange หลายเครื่อง ให้รันคำสั่งด้านล่าง
C:\scripts\.\ExchangeExtendedProtectionManagement.ps1 -ExchangeServerNames "EX01-2019", "EX02-2019" -ExcludeVirtualDirectories "EWSFrontEnd" -Confirm:$falseหากต้องการปิดใช้งาน Extended Protection อย่างสมบูรณ์ (ไม่แนะนำ) ให้รันคำสั่งด้านล่าง
C:\scripts\.\ExchangeExtendedProtectionManagement.ps1 -DisableExtendedProtection -Confirm:$falseเมื่อตั้งค่าเรียบร้อยแล้ว เรามาตรวจสอบผลลัพธ์ของ Extended Protection กัน
ตรวจสอบสถานะการป้องกันเพิ่มเติม
เรียกใช้ Exchange Management Shell ในฐานะผู้ดูแลระบบและเรียกใช้สคริปต์ รวมถึงพารามิเตอร์ -ShowExtensedProtection
C:\scripts\.\ExchangeExtendedProtectionManagement.ps1 -ShowExtendedProtectionตรวจสอบว่า EWS ใน เว็บไซต์เริ่มต้น แสดงค่า ไม่มี
Results for Server: EX03-2019.exoip.local
Default Web Site Value SupportedValue ConfigSupported ConfigSecure RequireSSL ClientCertificate
---------------- ----- -------------- --------------- ------------ ---------- -----------------
API Require Require True True True (128-bit) Ignore
Autodiscover None None True True True (128-bit) Ignore
ECP Require Require True True True (128-bit) Ignore
EWS None Allow True False True (128-bit) Ignore
Microsoft-Server-ActiveSync Allow Allow True True True (128-bit) Ignore
Microsoft-Server-ActiveSync/Proxy Allow Allow True True True (128-bit) Ignore
OAB Allow Allow True True True (128-bit) Ignore
Powershell None None True True False Accept
OWA Require Require True True True (128-bit) Ignore
RPC Require Require True True True (128-bit) Ignore
MAPI Require Require True True True (128-bit) Ignore
Exchange Back End Value SupportedValue ConfigSupported ConfigSecure RequireSSL ClientCertificate
----------------- ----- -------------- --------------- ------------ ---------- -----------------
API Require Require True True True (128-bit) Ignore
Autodiscover None None True True True (128-bit) Ignore
ECP Require Require True True True (128-bit) Ignore
EWS Require Require True True True (128-bit) Ignore
Microsoft-Server-ActiveSync Require Require True True True (128-bit) Ignore
Microsoft-Server-ActiveSync/Proxy Require Require True True True (128-bit) Ignore
OAB Require Require True True True (128-bit) Ignore
Powershell Require Require True True True (128-bit) Ignore
OWA Require Require True True True (128-bit) Ignore
RPC Require Require True True True (128-bit) Ignore
PushNotifications Require Require True True True (128-bit) Ignore
RPCWithCert Require Require True True True (128-bit) Ignore
MAPI/emsmdb Require Require True True True Ignore
MAPI/nspi Require Require True True True Ignore
การป้องกันแบบขยายถูกปิดใช้งานบนไดเรกทอรีเสมือน EWS ส่วนหน้าบน Exchange Server เรียบร้อยแล้ว
เรียกใช้ตัวช่วยสร้างการกำหนดค่าไฮบริด
เรียกใช้ตัวช่วยสร้างการกำหนดค่าไฮบริดและดำเนินการตามตัวช่วยสร้าง เลือกใช้ Exchange Modern Hybrid คลิกถัดไป
เลือก ใช้ตัวแทนที่มีอยู่ คลิกถัดไป
กรอกบัญชีผู้ดูแลระบบภายในองค์กร คลิกถัดไป
การตั้งค่า Hybrid Agent จะเริ่มดาวน์โหลด ติดตั้ง ลงทะเบียน และตรวจสอบความถูกต้องของ Hybrid Agent ได้สำเร็จ ข้อผิดพลาดไม่ปรากฏอีกต่อไป และทุกอย่างดูดี
ดำเนินการต่อด้วย Hybrid Configuration Wizard และดำเนินการให้เสร็จสิ้น
แค่นั้นแหละ!
อ่านเพิ่มเติม: กำหนดค่าการป้องกันรหัสผ่าน Microsoft Entra สำหรับภายในองค์กร »
บทสรุป
คุณได้เรียนรู้วิธีแก้ไขข้อผิดพลาด: ตรวจสอบ Hybrid Agent สำหรับการใช้งาน Exchange ตรวจสอบบันทึกของ HCW ก่อนเสมอ วิธีแก้ไขข้อผิดพลาดนี้คือการปิดใช้งาน Extended Protection บนไดเรกทอรีเสมือน Front-End EWS บน Exchange Server หลังจากนั้นการตั้งค่าสามารถตรวจสอบการใช้งาน Hybrid Agent for Exchange ได้สำเร็จ
คุณสนุกกับบทความนี้หรือไม่? คุณอาจต้องการวิธีคืนค่าผู้ใช้ Microsoft 365 Hybrid ที่ถูกลบ อย่าลืมติดตามเราและแบ่งปันบทความนี้







