Failed to Enumerate Objects in the Container in Windows 10 [Fix]

Failed to Enumerate Objects in the Container - Windows 10


Have you ever encountered the Failed to Enumerate Objects in the Container. Access Is Denied Error in Windows while trying to change file or folder permissions on Windows 10?

If so, you’re not alone. I’ve experienced this issue too and delved deep into research to find effective solutions + some professional experience 😉

This detailed guide is designed to help fix your problem with easy-to-follow steps, no matter your tech skill level. 

Overview Of The Error

On Windows 10, the legwork behind file sharing and permission setting often goes unnoticed, that is until you encounter the pesky error. This issue catches you off-guard while attempting to alter permissions of files or folders – particularly those sourced externally or shared among multiple users.

Although it sounds technologically intimidating, this disruptive hiccup refers merely to an unsuccessful attempt by your computer system to count (or ‘enumerate’) objects within a specific digital container – be it a file or folder.

It’s vital not to confuse its complex name with complexity in fixing; even for users without extensive software experience. However, like any troubleshooting process on Windows 10, resolving this error requires administrative rights — meaning you’d need access as an administrator before you change the permission on certain files or folders.

Though optional but beneficial would be booting your device in Safe Mode before inspecting any method prescribed below; doing so isolates your system from external influences and creates a secure environment for pinpointing precisely what might have triggered this error.

Common Causes Of The Error

The error “Failed to Enumerate Objects in the Container” surfaces due to several reasons, which are intrinsic to your Windows machine.

Understanding these causes is vital for effectively dealing with this problem. Here’s a rundown of some common triggers:

  1. Permission issues: Often, this error materializes when you don’t have appropriate permissions to access or modify a file or folder. This might be due to your account not possessing administrator rights.
  2. Faulty User Account Control: Sometimes, an overly protective user account control can restrict your ability to make necessary changes leading up to this error.
  3. Outdated Drivers: If you’re using outdated drivers on your PC, they could potentially cause conflicts resulting in this error message appearing on your screen.
  4. BIOS/UEFI Firmware Glitch: An issue with your BIOS/UEFI firmware could lead up to this error message making an appearance.
  5. Corrupted Files or Folders: The files or folders you’re trying to access could be corrupted prompting the system error message about failure in enumerating objects residing within these containers.
  6. Improper Shutdowns: Abrupt system shutdowns can occasionally result in such errors as Windows failing to save configuration changes made during that session.
  7. Malware Invasion: Certain malware programs have been known to restrict user permissions and cause such errors especially when trying to access sensitive system files and folders.

Follow these steps to fix the error….

1: Manually Change The Ownership Of The File Or Folder

Navigating this error can be tricky, but a practical starting point is to manually change the ownership of the folder or file.

Here’s how you can do it:

  1. Locate and right-click on the troublesome file or folder, then select ‘Properties’ from the dropdown menu.
  2. In the ‘Properties’ window that pops up, head over to the security settings of the file or folder in the Security tab.
  3. Click on Advanced Security Settings.
  4. In the new window, you’ll find an ‘Owner’ segment at the top; click on ‘Change’.
  5. Input your administrator username in the box that opens up and hit ‘Check Names’. It’ll allow Windows to verify if such an account exists.
  6. Once verified successfully, click on ‘OK’.
  7. Back in the previous window, check both boxes next to “Replace owner on sub containers and objects” and “Replace all child object permission entries with inheritable permission entries from this object“. This is how you take full ownership of the file or folder
  8. Hit ‘Apply’ to make changes, followed by ‘OK’.

2: Disable User Account Control

Disabling User Account Control (UAC) might help resolve the issue. Here’s how you can do it:

  • Access the Start menu by clicking on the Windows logo in the bottom-left corner of your screen.
  • Type “User Account Control” in the search bar and select “Change User Account Control settings” from the search results.
  • In the User Account Control settings window, move the slider to either the lowest or second-lowest position, depending on your preference for UAC notifications.
  • Click on “OK” to save your changes. You may be prompted to enter your administrator password or confirm your selection.

3: Use The Elevated Command Prompt

I highly recommend using the Elevated Command Prompt as a solution to fix the error.

Here are the steps you need to follow:

  1. Press the Windows key + X on your keyboard and select “Command Prompt (Admin)” or “Windows PowerShell (Admin)” from the menu that appears.
  2. In the Command Prompt window, type “takeown /f [full path to file or folder] /r /d y” and press Enter. This command will change the ownership of the problematic file or folder to your user account.
  3. Next, enter “icacls [full path to file or folder] /grant administrators: F /t” and hit Enter. This command will grant full permissions to administrators for the specified file or folder, including all subfolders and files.
  4. Wait for the process to complete, and then close the Command Prompt window.

4: Run Chkdsk

Running Chkdsk, a utility that checks and repairs file system errors, may help fix any underlying problems causing the error.

Here’s how to do it:

  • Open the Command Prompt:
  • Press the Windows key + X on your keyboard.
  • Select “Command Prompt (Admin)” from the menu.
  • In the Command Prompt window, type the following command and press Enter: “chkdsk C: /f”
  • If your affected partition is not C:, replace “C:” with the appropriate drive letter.
  • You’ll be prompted to schedule a disk check on the next system restart. Type ‘Y’ and press Enter.
  • Restart your computer and let Chkdsk scan and repair any file system errors on your selected partition.

5: Update Your Drivers And BIOS/UEFI Firmware

Updating your drivers and BIOS/UEFI firmware is an essential step in fixing the error.

Here’s what you need to do:

  • Make sure you have an administrator account or obtain administrative privileges before proceeding with the updates.
  • Boot your computer in Safe Mode to minimize potential conflicts during the update process.
  • Visit the manufacturer’s website of your system or motherboard to download the latest drivers and BIOS/UEFI firmware updates. Look for the specific model of your device.
  • Locate and download the appropriate driver updates for your hardware components, such as graphics card, network adapter, chipset, etc.
  • Download the latest BIOS/UEFI firmware update for your system if available. This update may come in a .exe or .zip format.
  • Once downloaded, open and run the driver update files one by one. Follow the on-screen instructions to install each driver update accordingly.
  • For updating BIOS/UEFI firmware, carefully read any provided documentation or readme files that accompany the update package. Follow the instructions precisely to prevent any issues during installation.
  • Remember to restart your computer after each driver or firmware update is completed.

6: Perform A Repair Upgrade

Perform a Repair Upgrade.

  1. Start by downloading the Windows 10 ISO file from the official Microsoft website.
  2. Once the download is complete, create a bootable USB or DVD using a tool like Rufus or the Windows Media Creation Tool.
  3. Insert the bootable USB or DVD.
  4. Follow the on-screen instructions to initiate the Windows setup process.
  5. When prompted to choose between an upgrade or a custom installation, select “Upgrade” to keep your files, applications, and settings intact.
  6. The setup process will now begin reinstalling Windows 10 while repairing any underlying system issues that may be causing the error.
  7. Once the repair upgrade is complete, restart your computer.

What To Do If Ownership Cannot Be Changed?

If you are unable to change ownership, don’t worry! There are still steps you can take to resolve this issue.

Here’s what you can do:

  • Use the Elevated Windows PowerShell: If you are unable to change ownership through the usual methods, try using the elevated Windows PowerShell. 
  • Press the “Windows PowerShell (Admin)” from the menu. Type “takeown /f [full path to file or folder] /r /d y” and press Enter
  • Once ownership is successfully changed, restart your computer and check if the error persists.

Also Read: Fix 0x80070522 A required privilege is not held by the client Error in Windows


In conclusion, encountering the “Failed to Enumerate Objects in the Container” error can be frustrating, but there are multiple effective methods to resolve it. Whether it’s changing ownershipdisabling User Account Control, or using the elevated Command Prompt, these steps can help you regain control over your files and folders.

Remember to always approach troubleshooting with caution and perform these actions with an administrator account. With patience and persistence, you can overcome this error and continue using your Windows 10 system without any hindrances.

If you are still having issues, why not give our experienced technicians a call today?

Q: What is “Failed to Enumerate Objects in the Container” error?

A: “Failed to Enumerate Objects in the Container” error is a common error in Windows 10 which occurs when users try to access a folder or file but don’t have permission to access that folder or file.are

Q: What should I do if I get an “Access Denied” error while changing permissions for a file or folder in Windows 10?

A: If you get an “Access Denied” error while changing permissions for a file or folder in Windows 10, you should make sure that you are logged in as an administrator and that the file or folder is not currently in use by another program.

Q: What should I do if I still get an “Access Denied” error after changing folder permissions in Windows 10?

A: If you still get an “Access Denied” error after changing folder permissions in Windows 10, you should check if your computer is part of a local network or domain where the objects in the container access is denied by default. 

Q: How can I fix Failed to Enumerate Objects in the Container error in Windows 11?

A: The solutions for fixing the “Failed to Enumerate Objects in the Container” error in Windows 11 are similar to those for Windows 10. You can try changing the ownership or permissions of the affected file or folder, or accessing the file or folder in Windows 11 safe mode.

I am a computer engineer holding a bachelor's degree in Computer Science, complemented by a Master's in Business Administration from University of Strathclyde, Scotland. I currently work as a Senior IT Consultant in Melbourne, Australia. With over 15 years of...