Windows บันทึกทุกเหตุการณ์เป็น Event เพื่อติดตามปัญหา Event IDs ของ User Profile Service ที่พบบ่อย:
- 1500: ล็อกอินล้มเหลวด้วย Temporary Profile
- 1511: ไม่หา User Profile ได้ → ล็อกอินด้วย Temporary Profile
- 1530: Registry File ของ User Profile ถูกใช้โดยแอป/โปรเซสอื่น (พฤติกรรมปกติ)
- 1533: ไม่สามารถลบโฟลเดอร์โปรไฟล์ C:\Users\<Username> ได้ เพราะถูกใช้งานอยู่
- 1534: เกี่ยวกับ DOMAIN Joined User Profiles
- 1542: User Profile Registry และ Data File เสียหาย (Corrupt)
Troubleshoot User Profile Service Event IDs
ใช้ได้กับ Windows 10, 8.1, Server 2012, 2012 R2, 2016 มี 4 ขั้นตอน:
1. ตรวจสอบ Events ใน Application Log
- เปิด Event Viewer (ค้นหาใน Start)
- Windows Logs → Application
- Actions → Filter Current Log → Event Sources: ติ๊ก User Profiles Service → OK
- ดูรายละเอียด Event IDs, วันที่/เวลา
2. ดู Operational Log ของ User Profile Service
- Event Viewer → Applications and Services Logs → Microsoft → Windows → User Profile Service → Operational
- ตรวจสอบ Events รอบเวลาที่ Error เกิดใน Application Log
3. เปิดและดู Analytic/Debug Logs
- View → Show Analytic and Debug Logs
- ไปที่: Application and Services Logs → Microsoft → Windows → User Profile Service → Diagnostic
- Enable Log → Yes (เริ่ม Logging)
- หลังแก้ไขเสร็จ: Diagnostic → Disable Log → View → ยกเลิก Show Analytic and Debug Logs
4. สร้างและถอดรหัส Trace (ขั้นสุดท้าย)
- ล็อกอินด้วย Admin Account ที่มีปัญหา
- เปิด PowerShell (Admin) ที่โฟลเดอร์ที่สร้างไว้
- รัน:
logman create trace -n RUP -o \RUP.etl -ets logman update RUP -p {eb7428f5-ab1f-4322-a4cc-1f1a9b2c5e98} 0x7FFFFFFF 0x7 -ets - Switch User ไปบัญชีอื่น (อย่า Sign Out)
- ทำให้ปัญหาเกิดซ้ำ
- ล็อกอินกลับมาด้วย Local Admin
- รัน:
logman stop -n RUP -ets - แปลงเป็นไฟล์อ่านได้:
Tracerpt \RUP.etl - เปิด Summary.txt (Notepad) หรือ Dumpfile.xml (Excel) → หา Event ที่เป็น fail/failed (Unknown ข้ามไปได้)
รายละเอียดเพิ่มเติม: Microsoft Official Documentation