3 วิธีแก้ไข The User Profile Service failed the logon error
เมื่อ Login Windows 10 คุณอาจได้รับข้อความ “The User Profile Service failed the logon. User profile cannot be loaded.” หมายความว่าบัญชีที่พยายาม Login นั้น เสียหาย (Corrupted) สาเหตุอาจมาจากมัลแวร์/ไวรัส ไฟล์ Windows Update ล่าสุด ฯลฯ แต่มีวิธีแก้ไข มาดูกัน
เริ่ม Windows ใน Safe Mode:
- ที่หน้าจอ Login ที่แสดง Error คลิก Power Button กดค้าง Shift คลิก Restart
- ค้าง Shift จนเห็น Advanced Recovery Options Menu
- ไปที่: Troubleshoot > Advanced options > Startup settings > Restart
- หลัง Restart จะเห็นหน้าจอสีน้ำเงินพร้อมตัวเลือก กดหมายเลขถัดจาก Enable Safe Mode with Networking
- Login เข้าสู่ Administrator Account ใน Safe Mode เปิด Command Prompt พิมพ์: net user administrator /active:yes
- พิมพ์ shutdown /r ใน cmd กด Enter เพื่อ Restart
- Reboot จะเห็น Hidden Administrative Account สำหรับ Login
ทำ System Restore ด้วย Administrator Account ข้างต้น
- กด Windows Key + R พิมพ์ sysdm.cpl กด Enter
- เลือกแท็บ System Protection เลือก System Restore
- คลิก Next เลือก System Restore point ที่ต้องการ
- ทำตามคำแนะนำบนหน้าจอ ทำ System Restore ให้เสร็จ ดูว่าสามารถ Fix The User Profile Service failed the logon error ได้หรือไม่ หากไม่ได้ ให้ลองวิธีด้านล่าง
หมายเหตุ: Backup Registry ก่อนทำวิธีด้านล่าง เพราะการแก้ไข Registry อาจทำลายระบบได้รุนแรง
วิธีที่ 1: ซ่อม User Profile ที่เสียหายผ่าน Registry Editor
- Login ด้วย Administrator Account ที่เปิดใช้งานข้างต้น
- สร้าง Restore Point ก่อน
- กด Windows Key + R พิมพ์ regedit กด Enter เปิด Registry Editor
- ไปที่ Registry Subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
- ภายใต้ Key นี้ หา Key เริ่มต้นด้วย S-1-5 ตามด้วยตัวเลขยาว
- จะมี 2 Key ลักษณะนี้ ต้องหา Subkey ProfileImagePath ดูค่า Value
- ค่า Value Data ควรเป็น User Account ของคุณ เช่น C:\Users\Aditya
- อีก Key หนึ่งจะลงท้ายด้วย .bak extension
- คลิกขวา Key ที่ มี User Account ของคุณ เลือก Rename พิมพ์ .ba ท้ายชื่อ กด Enter
- คลิกขวา Key ที่ลงท้าย .bak เลือก Rename ลบ .bak ออก กด Enter
- หากมี Key เดียวที่ลงท้าย .bak ให้ Rename ลบ .bak ออก
- เลือก Key ที่ Rename แล้ว (ลบ .bak) ด้านขวา ดับเบิลคลิก RefCount
- พิมพ์ 0 ใน Value Data ของ RefCount คลิก OK
- ดับเบิลคลิก State ใน Key เดียวกัน เปลี่ยน Value เป็น 0 คลิก OK
- Reboot คอมพิวเตอร์ ควร Login ได้ และ Fix The User Profile Service failed the logon error
วิธีที่ 2: คัดลอกโฟลเดอร์ Default จากคอมพิวเตอร์ Windows อื่น
- ต้องมีคอมพิวเตอร์อื่นที่ทำงาน Windows 10 อยู่
- กด Windows Key + R พิมพ์ C:\Users กด Enter
- คลิก View > Options ไปแท็บ View
- ติ๊ก Show hidden files, folders, and drives คลิก Apply OK
- จะเห็นโฟลเดอร์ Hidden ชื่อ Default คลิกขวา Copy
- Waste Default Folder นี้ไปที่ Pendrive/USB Flash Drive
- Login ด้วย Administrative Account ข้างต้น ทำขั้นตอน 2-4 อีกครั้งเพื่อแสดง Default Folder
- ที่ C:\Users เปลี่ยนชื่อ Default Folder เป็น Default.old
- Copy Default Folder จากอุปกรณ์ภายนอกไป C:\Users
- Reboot คอมพิวเตอร์ ดูว่าสามารถ Fix The User Profile Service failed the logon error ได้หรือไม่
วิธีที่ 3: Login Windows และ Copy ข้อมูลไปยังบัญชีใหม่
- กด Windows Key + R พิมพ์ C:\Users กด Enter
- คลิก View > Options ไปแท็บ View
- ติ๊ก Show hidden files, folders, and drives Apply OK
- จะเห็นโฟลเดอร์ Hidden ชื่อ Default คลิกขวา Rename
- ตั้งชื่อเป็น Default.old กด Enter
- สร้างโฟลเดอร์ใหม่ชื่อ Default ภายใต้ C:\Users Directory
- ในโฟลเดอร์ที่สร้าง สร้าง Sub-folder ว่างๆ ด้วยคลิกขวา New > Folder:
C:\Users\Default\AppData C:\Users\Default\AppData\Local C:\Users\Default\AppData\Roaming C:\Users\Default\Desktop C:\Users\Default\Documents C:\Users\Default\Favorites C:\Users\Default\Links C:\Users\Default\Pictures C:\Users\Default\Save Games C:\Users\Default\Videos C:\Users\Default\Downloads
- กด Windows Key + X เลือก Command Prompt (Admin)
- พิมพ์คำสั่งใน cmd กด Enter: xcopy C:\Users\Your_Username\NTUSER.DAT C:\Users\Default /H หมายเหตุ: แทน Your_Username ด้วย Username ของคุณ หากไม่รู้ Username จะเห็นในโฟลเดอร์ C:\Users (เช่น Username คือ Farrad)
- ตอนนี้สามารถสร้าง User Account ใหม่ Reboot แล้ว Login เข้าบัญชีใหม่ได้โดยไม่มีปัญหา
แนะนำให้อ่าน:
- แก้ไข Your Account Has Been Disabled. Please See Your System Administrator
- ค้นหารหัสผ่าน WiFi ที่ลืมใน Windows 10
- แก้ไข CD/DVD drive not showing up in Windows Explorer
- วิธีแก้ Computer crashes in Safe Mode
เรียบร้อยแล้ว คุณได้ แก้ไข The User Profile Service failed the logon error message เรียบร้อยแล้ว หากยังมีคำถาม สามารถถามได้ในส่วนความคิดเห็นครับ