Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows 10

แก้ไข Windows 10 App เปิดแล้วปิดทันที

Windows 10 Apps บางตัวหรือทั้งหมดทำงานไม่ได้? ก่อนหน้านี้เขียนแก้ Missing Windows Store Apps 近期มีลูกค้านำ Windows 10 Machine มา Apps เปิดแล้วปิดทันที

ถ้า App โหลดไม่ได้ อาจเป็น Permissions Issue เหตุผลเยอะที่ Store Apps Fail เริ่มต้น หนึ่งคือ Permissions ของ Windows Folders และ Registry Settings ถูกเปลี่ยน แบบ Manual หรือ Group Policy

แก้ไข Windows 10 App เปิดแล้วปิดทันที

แก้ได้โดยเช็ค Permissions โฟลเดอร์และ Registry ให้ถูกต้อง บทความนี้จะ Walkthrough ขั้นตอน เพื่อให้ Store Apps รันได้อีกครั้ง

Windows 10 Event Log

ยืนยันสาเหตุได้จาก Event Log เช็ค Event ID 5961 เปิด Event Log: Start พิมพ์ event log

ไปที่ Log File นี้:

Applications and Services Logs\Microsoft\Windows\Apps\Microsoft-Windows-TWinUI/Operational

จะเห็น Events หลายพันรายการ ไปดูเองไม่ออก คลิก Find ขวาสุด พิมพ์ 5961 จะ Search ใน Log ถ้ามีจะ Highlight แถวนั้น ดับเบิลคลิก จะเห็น Info แบบนี้:

Log Name: Microsoft-Windows-TWinUI/Operational
Source: Microsoft-Windows-Immersive-Shell
Event ID: 5961
Level: Error
Description:
Activation of the app for the Windows.Launch contract failed with error: The app didn't start.

ถ้ามี Event นี้ แทบแน่ใจว่าเป็น Permissions Issue สำหรับ Group ใหม่ใน Windows ชื่อ All Application Packages All Application Packages คืออะไร? คล้าย Built-in Administrators หรือ Users Groups All Application Packages รวม Store Apps ทุกตัวที่ติดตั้งใน Windows 10 ถ้า Group นี้ไม่มี Permissions โฟลเดอร์/Registry บางอย่าง จะทำให้ Store Apps Launch ไม่ได้

แก้ไข File System Permissions

ก่อนอื่น แก้ File System Permissions เช็ค Permissions 3 โฟลเดอร์: Program Files, Windows, Users

  1. Explorer คลิกขวา C:\Windows แท็บ Security ควรหน้าตาแบบนี้
  2. แก้ไข Windows 10 App เปิดแล้วปิดทันที
  3. ถ้าไม่ใช่ คลิก Advanced ขวาล่าง หน้าถัดไป Change Permissions
  4. แก้ไข Windows 10 App เปิดแล้วปิดทันที
  5. คลิก Add (ถ้า Add สีเทา = ไฟล์เป็นของ TrustedInstaller อ่านบทความก่อน: เปลี่ยน Permissions ได้ Full Control)
  6. แก้ไข Windows 10 App เปิดแล้วปิดทันที
  7. คลิก Select a principal พิมพ์ all application packages ใน Object Name คลิก Check Names ก่อน OK
  8. แก้ไข Windows 10 App เปิดแล้วปิดทันที
  9. Type = Allow Applies to = This folder, subfolders and files Permissions: Read & execute, List folder contents, Read OK
  10. แก้ไข Windows 10 App เปิดแล้วปิดทันที
  11. กลับหน้าจอหลัก ติ๊ก Replace all child object permission entries with inheritable permission entries from this object
  12. แก้ไข Windows 10 App เปิดแล้วปิดทันที
  13. ทำซ้ำ C:\Users และ C:\Program Files สำหรับ C:\Users ทุกอย่างเหมือนเดิม แต่ให้ All Application Packages Full Control ถ้า 64-bit Windows ทำ C:\Program Files (x86) ด้วย

แก้ไข Registry Permissions

Registry Entries: เปิด regedit (Start พิมพ์ regedit) เช็ค Permissions HKEY_USERS คลิกขวา Permissions

แก้ไข Windows 10 App เปิดแล้วปิดทันที

แน่ใจว่า All Application Packages มี Read Permission

แก้ไข Windows 10 App เปิดแล้วปิดทันที

ทำซ้ำ HKEY_CLASSES_ROOT ขยาย HKEY_LOCAL_MACHINE เช็ค HARDWARE, SAM, SOFTWARE, SYSTEM

ถ้ายังไม่บ้าจนตอนนี้ ยินดีด้วย! ปัญหาหลัก: เปลี่ยน Permissions System Folders เพราะต้องเอาชนะ TrustedInstaller ก่อน ครึ่งหนึ่งไม่ทำงาน แล้วคืนค่าปกติก็เสี่ยงเท่าเดิม

อาจดีกว่า Reset Windows 10 แต่ต้องติดตั้ง Third-party Apps ใหม่ Reset: Settings > Update & Security > Recovery พยายามเปลี่ยน Permissions Error คอมเมนต์ จะช่วย Enjoy!