Network Security / Login Prompt ใน Office 365 คืออะไร?
ในบริบทของ Office 365/Microsoft 365 "Network Security" มักหมายถึง การยืนยันตัวตน (Authentication) และ Credential Prompt (หน้าต่างขอรหัสผ่าน) ไม่ใช่ Wi-Fi Password
เหตุผลที่ Outlook/Office ถามรหัสผ่านซ้ำๆ
- Modern Authentication ปิด: ใช้ Basic Auth ที่เลิก支援แล้ว
- Credential Manager เก็บ Credential เก่า/ผิด: Windows Credential Manager มีข้อมูลล้าสมัย
- Profile Outlook เสียหาย: ต้องสร้าง Profile ใหม่
- Conditional Access / MFA Policy: นโยบายองค์กรบังคับ MFA หรือ Block Legacy Auth
- Token หมดอายุ/ถูกเพิกถอน: Refresh Token Expired, Revoked โดย Admin
- Network/Proxy/Firewall บล็อก: ไม่สามารถติดต่อ Login Endpoint (login.microsoftonline.com)
วิธีแก้ไขปัญหา Credential Prompt
1. ลบ Credential เก่าใน Windows Credential Manager
- Control Panel > Credential Manager > Windows Credentials
- หา entry ที่เกี่ยวกับ
MicrosoftOffice16,Outlook,microsoft.com,office365.com - คลิก Remove ทุกตัว
- เปิด Outlook ใหม่ จะขอ Credential ใหม่
2. เปิดใช้งาน Modern Authentication (Tenant Admin)
Microsoft 365 Admin Center > Settings > Org Settings > Modern Authentication > ใส่ถูก Enable modern authentication > Save (อาจใช้เวลาประมาณ 1 ชม. มีผล)
3. สร้าง Outlook Profile ใหม่
- Control Panel > Mail (Microsoft Outlook) > Show Profiles
- Add > ตั้งชื่อ > Wizard จะตั้งค่าอัตโนมัติ (Autodiscover)
- เลือก Always use this profile > OK
4. ตรวจสอบ Registry (Advanced) - Disable ADAL/WAM
หากมีปัญหา Web Account Manager (WAM) ใช้ Registry:
HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity
DisableADALatop = 1 (DWORD) - ปิด ADAL
EnableADAL = 0 (DWORD) - ปิด ADAL
หมายเหตุ: ไม่แนะนำให้ปิด Modern Auth ใช้เฉพาะกรณีบังคับ
5. ใช้เครื่องมือ Microsoft Support and Recovery Assistant (SaRA)
ดาวน์โหลดจาก aka.ms/SaRA-OutlookSignIn รันเลือก "Outlook sign-in issues"
ตั้งค่า "Always prompt for logon credentials" (Outlook Desktop)
- File > Account Settings > Account Settings
- ดับเบิลคลิกบัญชี Exchange > More Settings > แท็บ Security
- Uncheck "Always prompt for logon credentials" (ถ้าต้องการไม่ให้ถามซ้ำ)
- หรือ Check ถ้าต้องการให้ถามทุกครั้ง (Security High)
สำหรับ Admin: ตรวจสอบ Sign-in Logs
Azure AD / Entra ID > Monitoring > Sign-in logs > Filter by User > ดู Failure Reason (Invalid credentials, MFA required, Conditional Access, Legacy Auth blocked)