เจอ Error "Failed to enumerate objects in the container" ขณะเข้าถึง/แก้ไขโฟลเดอร์/ไฟล์? บัญชีผู้ใช้อาจไม่มี Permission ดู/แก้ไข Item นั้น มีสาเหตุอื่นก่อให้เกิด Error นี้ เราจะแสดงวิธีแก้ Permission และสาเหตุอื่นบน Windows 10/11
สาเหตุอีกอย่าง: ไวรัส/มัลแวร์ติดระบบ เปลี่ยน Permission โฟลเดอร์/ไฟล์ ปิดการเข้าถึงของ User
ตรวจสอบว่าใช้ Administrator Account
เช็ค Account Type ก่อน: ต้องใช้ Admin Account เข้าถึงไฟล์/โฟลเดอร์ ถ้าไม่ใช่ Admin → ขอ Admin account holder ทำตามขั้นตอนทำให้คุณเป็น Admin
ต้องใช้ Admin-level account ทำ Troubleshooting ข้างล่าง แปลง Account ปัจจุบันเป็น Admin ดีกว่า
Windows 11
- Win + I → Settings
- Accounts (ซ้าย) → Other users (ขวา)
- เลือก Ordinary account → Change account type
- Account type → Administrator → OK
- Sign out → Login ใหม่ด้วย Account ที่แปลงแล้ว
Windows 10
- Win + I → Settings
- Accounts
- Family & other users (ซ้าย)
- เลือก Regular account (ขวา) → Change account type
- Administrator → OK
- Log out → Login ใหม่
เปลี่ยน Owner ของไฟล์/โฟลเดอร์ ด้วยตนเอง
Permission ยังมีปัญหา → เปลี่ยน Ownership Item นั้นเอง โอน Ownership ให้ Account ของคุณ → เข้าถึงได้โดยไม่ Error
- File Explorer → หา Folder/File
- คลิกขวา → Properties
- Security tab → Advanced
- Change ถัดจาก Owner
- พิมพ์ Account name → Check Names → OK
- ติ๊ก Replace owner on subcontainers and objects
- ติ๊ก Replace all child object permission entries with inheritable permission entries from this object
- Apply → OK
- Yes บน Prompt
เอา Ownership ด้วย Elevated Command Prompt
อีกวิธี: คำสั่งใน Command Prompt โอน Ownership
- Start → Command Prompt → Run as administrator
- Yes UAC
- พิมพ์: takeown /F PATH /r /d y (แทน PATH ด้วย Full path ไฟล์/โฟลเดอร์) → Enter
- ปิด Command Prompt เมื่อคำสั่งเสร็จ
สแกนไวรัส/มัลแวร์ แก้ Failed to Enumerate Objects
ยังเข้าถึงไม่ได้ → อาจติดไวรัส/มัลแวร์ Item ร้าย ปิดการเข้าถึง Item ต่างๆ
รัน Full Virus/Malware Scan ลบไฟล์ร้ายหมด ใช้ Third-party Antivirus หรือ Microsoft Defender Antivirus:
- Start → Windows Security → เปิด
- Virus & threat protection
- Scan options
- Full scan → Scan now
- รอ Antivirus หา/ลบ ไวรัส มัลแวร์
- Reboot PC
Tip: บูท Windows ใน Safe Mode
ทำวิธีข้างบนไม่ได้ → Boot Safe Mode ทำซ้ำ Safe Mode แยก Third-party items ทำงานได้โดยไม่มีการรบกวน
Windows 11
- Win + I → Settings
- System (ซ้าย) → Recovery (ขวา)
- Restart now ถัดจาก Advanced startup
- Restart now บน Prompt
- Troubleshoot → Advanced options → Startup Settings → Restart
- เลือก Safe Mode
Windows 10
- Win + I → Settings
- Update & Security
- Recovery (ซ้าย)
- Restart now ใน Advanced startup (ขวา)
- Troubleshoot → Advanced options → Startup Settings → Restart
- เลือก Safe Mode
แก้ Permission ไฟล์/โฟลเดอร์ Windows ได้ง่าย
Permission Issue ใน Windows พบบ่อย มักจากคนอื่นเอา Ownership ไป แก้ได้โดยโอน Ownership กลับมา บทความนี้หวังว่าช่วยแก้ปัญหา เข้าถึงไฟล์/โฟลเดอร์ได้ สนุกกับการใช้งาน!