ตั้งแต่ Windows 10 1703 (Creators Update) มี Built-in Universal Apps ใหม่หลายตัวที่ไม่สามารถลบได้ด้วยขั้นตอนมาตรฐาน ตัวอย่างเช่น พยายamlลบ Built-in Universal Apps ด้วย Remove-AppxPackage cmdlet จะได้ Error: HRESULT 0x80073CFA Removal failed บทความนี้จะแนะนำเทคนิคบังคับลบ Built-in App ใดๆ ใน Windows 10
สมมติว่าคุณได้ Error ตอนพยายามลบ Built-in Universal Application:
Remove-AppxPackage: Deployment failed with HRESULT: 0x80073CFA, Removal failed. Please contact your software vendor. (Exception from HRESULT: 0x80073CFA) error 0x80070032: AppX Deployment Remove operation on package Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_c5as4n4uizeyw from: C:\Windows\SystemApps\Microsoft.XboxGameCallableUI_c5as4n4uizeyw failed. This app is part of Windows and cannot be uninstalled on a per-user basis. An administrator can attempt to remove the app from the computer using Turn Windows Features on or off. However, it may not be possible to uninstall the app. NOTE: For additional information, look for [ActivityId] b2516df1-c2fa-2201-f028-1af9ae2ba901 in the Event Log or use the command line Get-AppxLog -ActivityID b2516df1-c2fa-2201-f028-1af9ae2ba901 At line:1 char:1 + Remove-AppxPackage Microsoft.XboxGameCallableUI_1000.16299.15.0_neutr … + ~~ + CategoryInfo : WriteError: (Microsoft.XboxG…l_c5as4n4uizeyw:String) [Remove-AppxPackage], IOException + FullyQualifiedErrorId : DeploymentError, Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand
สำคัญ ก่อนลบ Universal Windows 10 app ด้วยวิธีด้านล่าง ขอแนะนำให้สร้าง Restore Point หรือ Image Backup ก่อน
เพื่อลบ Windows 10 Application ต้องใช้ 2 เครื่องมือฟรี:
- Psexec by Sysinternals
- DB Browser for SQLite
- ดาวน์โหลด pstools.zip แตกไฟล์ไปที่
C:\PSแล้วติดตั้ง (หรือดาวน์โหลด Portable version) DB Browser for SQLite - ใช้ psexec รัน Interactive Command Prompt ภายใต้ Local System:
psexec.exe -i -s -d cmd.exe - ในหน้าต่างถัดไป รัน DB Browser for SQLite executable (
C:\Program Files\DB Browser for SQLite\DB Browser for SQLite.exeหรือSQLiteDatabaseBrowserPortable.exe) ภายใต้ SYSTEM - ใน DB Browser คลิก Open Database เปิดไฟล์:
%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd - ไปแท็บ Browse Data เลือก Table Package
- หาชื่อ App ที่ต้องการลบในคอลัมน์ PackageFullName (ตัวอย่าง:
Microsoft.XboxGameCallableUI_c5as4n4uizeyw) เปลี่ยนค่าในคอลัมน์ IsInbox จาก 1 เป็น 0 สำหรับ App นี้ - บันทึกการเปลี่ยนแปลงด้วย File → Write changes (หรือ CTRL+S)
- จากนั้นลองลบ App จาก PowerShell:
Remove-AppxPackage Microsoft.XboxGameCallableUI_1000.16299.15.0_neutral_neutral_c5as4n4uizeyw
ควรจะลบได้โดยไม่มี Error หรือ Warning
จากการค้นหาเว็บ พบว่า Flag IsInbox สำหรับ Built-in Apps ปรากฏใน Local System Database สำหรับ Windows Apps ตั้งแต่ Windows 10 Anniversary Update (1607) เมื่อพยายามลบ Built-in App ที่ IsInbox flag เปิดอยู่ จะได้ Error 0x80073CFA