Computer >> Hướng Dẫn Máy Tính >  >> Hệ Thống >> Windows 10

Màn hình đăng nhập trắng trong app Office 365 (Outlook, Teams, v.v.)

Một số user Windows 10 phàn nàn khi chạy app Office 365 (Outlook, Teams, Word, Excel, v.v.) hoặc Outlook 2019/2016 (mailbox Exchange Online), màn hình đăng nhập trắng xuất hiện khi cố login tài khoản Microsoft. Không có prompt nhập thông tin xác thực. Bài viết tổng hợp giải pháp cơ bản khắc phục màn hình đăng nhập trắng trong app Office 365.

Màn hình đăng nhập trắng trong app Office 365 (Outlook, Teams, v.v.)

Thử reset cài đặt bảo mật Internet Explorer (Tools → Internet Options → Advanced → Reset → chọn Delete personal settings → Reset).
Màn hình đăng nhập trắng trong app Office 365 (Outlook, Teams, v.v.)

Nếu user vừa đổi pass và ngay sau đó gặp màn hình trắng, thử xóa mọi mật khẩu đã lưu liên quan Microsoft Office trong Windows Credential Manager (Control Panel → User Accounts → Credential Manager → Windows Credentials).
Màn hình đăng nhập trắng trong app Office 365 (Outlook, Teams, v.v.)

Khởi động lại app Office và kiểm tra cửa sổ xác thực Microsoft hiển thị đúng.

Vấn đề thường gặp khác liên quan đến Modern Authentication được bật trong tenant Azure/Microsoft 365/Exchange Online.

Để ngăn app Office dùng Modern Auth, tạo tham số registry EnableADAL (REG_DWORD) giá trị 0. Tùy phiên bản Office, đường dẫn registry khác:

  • Office 2013: HKCU\SOFTWARE\Microsoft\Office\15.0\Common\Identity\
  • Office 2019, 2016, Office 365: HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Identity\

Tạo EnableADAL reg parameter:

reg add "HKCU\SOFTWARE\Microsoft\Office\16.0\Common\Identity" /v EnableADAL /t REG_DWORD /d 0 /f

Tùy chọn này cho phép app Office dùng basic authentication thay vì Modern Auth.

Sau thêm EnableADAL=0 vào registry và restart Outlook, user sẽ thấy hộp thoại Windows Security thông thường nhập credential.

Tuy nhiên, tắt Modern Authentication cho Office (EnableADAL =0) có thể gây vấn đề khác. Ví dụ: Outlook liên tục nhắc nhập pass, user gặp khó khăn đăng nhập MS Teams, v.v.

Mặc định Modern Authentication bật cho tất cả tenant Microsoft 365 mới từ tháng 8/2017. Năm 2022, Microsoft dự định tắt hoàn toàn Basic Authentication cho tenant còn dùng. Vì vậy giải pháp tắt EnableADAL chỉ tạm thời, sau sẽ gặp rắc rối thêm. Cũng lưu ý Outlook 2010 không hỗ trợ Modern Auth.

Modern Authentication dựa trên ADAL (Active Directory Authentication Library) và OAuth 2.0. Dùng Microsoft Auth, app không lưu credential user mà dùng token-based authentication. Trên Windows 10, để Modern Auth hoạt động đúng, cần plugin AAD broker đặc biệt cài đặt. Nó phân phối dưới dạng modern APPX app. Nếu built-in UWP (APPX) app này bị gỡ khỏi Windows, user gặp vấn đề khi dùng Modern Authentication.

Kiểm tra Microsoft.AAD.BrokerPlugin app đã cài bằng PowerShell:

Get-AppxPackage Microsoft.AAD.BrokerPlugin |select Name,PackageFamilyName,InstallLocation,Status|fl
Màn hình đăng nhập trắng trong app Office 365 (Outlook, Teams, v.v.)

Nếu app bị gỡ nhưng file còn trên đĩa, đăng ký lại qua XML manifest:

Add-AppxPackage -Register "$env:windir\SystemApps\Microsoft.AAD.BrokerPlugin_cw5n1h2txyewy\Appxmanifest.xml" -DisableDevelopmentMode -ForceApplicationShutdown

Nếu file manifest cũng bị xóa, tải file cài APPX từ Microsoft Store cài thủ công app.

Tắt EnableADAL cho user trong registry PowerShell:

Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Office\16.0\Common\Identity" -Name EnableADAL

Xóa credential đã lưu:

cmdkey /list | ForEach-Object{if($_ -like "*Target:*"){cmdkey /del:($_ -replace " ","" -replace "Target:","")}}

Kế từ đó Modern Auth sẽ hoạt động đúng trong tất cả app Office 365.

Microsoft khuyên bật buộc Modern Authentication trong Outlook 2019/2016 và O365 dùng AlwaysUseMSOAuthForAutoDiscover=1 (HKCU \Software\Microsoft\Exchange\) registry parameter. Triển khai tham số này qua GPO.