7 Ways to Fix Failed to Enumerate Objects in the Container

by Madhuparna Roy
Madhuparna Roy
Madhuparna Roy
A diploma holder in computers and with a keen interest in technology, Madhuparna is passionate about writing How-to guides and helping people solve the most intricate Windows issues.... read more
Affiliate Disclosure
  • Windows allows the files and folders to be shared with multiple users on a shared local network.
  • By default, the administrators have full control of permissions over all content while the other users or user groups have only Read permissions for certain files and folders.
  • When those default permissions are removed accidentally, you may see the see Failed to enumerate objects in the container access is denied error. 
How to fix failed to enumerate objects in the container error

XINSTALL BY CLICKING THE DOWNLOAD FILE
To fix various PC problems, we recommend Restoro PC Repair Tool:
This software will repair common computer errors, protect you from file loss, malware, hardware failure and optimize your PC for maximum performance. Fix PC issues and remove viruses now in 3 easy steps:

  1. Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues affecting your computer's security and performance
  • Restoro has been downloaded by 0 readers this month.

When trying to change the permissions of a file or folder, you may often encounter an error – Failed to Enumerate Objects in the Container access is denied.

While, as the Administrator, you can change the access, sometimes even the admin may come across the same error message.

This is a common error and is often raised by users on different forums. In this case, even the admin is unable to change the permission for a specific user or other user groups when access is denied on Windows 10/11.

Moreover, many users also encounter the Failed to enumerate objects during Azure file share which can be apparently fixed by assigning a proper RBAC role (Storage File Data SMB Share Elevated Contributor role).

In this post, we will discuss 7 ways to fix the Failed to enumerate objects in the container access is denied for shared folders.

Why do I see the Failed to enumerate objects in the container error?

Some of the reasons why you may encounter the Failed to enumerate objects in the container on Windows 11 error are:

➜ No admin access

If the ownership for the file or folder is not the correct one, or you are not the administrator and you still try to make changes to the file or folder, the permission error pops up.

➜ Folder settings configured incorrectly

When some other user made any changes to the settings of the file or folder, either accidentally or intentionally.

➜ Conflict due to another program

Chances are, that a conflict arises between the folder you want to access and another program. This ends up removing the default permission entries.

➜ Obsolete account as the owner

If an account that is now obsolete is set as the owner of the file or folder for some time, leaving behind the obsolete permission entries.

So, answering your question – How do I give administrator permission? below are a few methods that may help you add permissions for the problem folder.

How do I fix Failed to enumerate objects in the container error?

1. Take the ownership of the file or folder

1.1 Add admin account and change permissions

  1. Right-click on the problem file or folder and select Properties. right click on folder and select properties
  2. Go to the Security tab and click on Advanced. Click on advanced in the security folder in properties
  3. In the Advanced Security Settings window, click on Change next to Owner. Click on Change in Advanced Security Settings
  4. This will open the Select User or Group dialogue box, type the user account name, and select Check Names. Enter user account name and check names
  5. Once you see an underline below the account name, press OK to save changes and return to the Advanced Security Settings window.
  6. Here, check the box next to Replace owners on sub containers and objects.
  7. Next, select the box next to Replace all child object permission entries with inheritable permission entries from this object. check Replace owners on sub containers and objects and Replace all child object permission entries with inheritable permission entries from this object
  8. Press Apply and then OK to save the changes and return to the Properties dialogue box. Under security tab in Properties,. click on Edit
  9. Here, under the Security tab, go to the Permissions field below, and click on Edit. Click on Edit under Security in Properties
  10. Now, next to Full control, select Allow. Check allow next to full control under permissions
  11. Press Apply and OK to apply changes and exit.

1.2 Add your user account name

  1. Go to the problem folder, right-click and select Properties. right click on folder and select properties
  2. Now, back in the Properties tab, under the Security tab, click on Advanced. Click on advanced in the security folder in properties
  3. In the Advanced Security Settings window, go to Permissions and click on Add. Click on Add under permissions in advanced security settings
  4. As the Permissions Entry window opens, click on Select a principal. Click on Principal under Permission entry
  5. You will now see the Select User or Group dialogue box.
  6. Here, go to the Enter the object name to select field and type your user account name.
  7. Press the Check names button. Press OK to save the changes. Enter user account name and check names
  8. Exit the Properties window.

Now, try opening your file or folder and check if you still encounter the Failed to enumerate objects in the container access is denied error still persists.

2. Disable User Account Control

  1. Press the Win + R shortcut key combination to launch the Run command.
  2. Type useraccountcontrolsettings in the search bar and hit Enter. Type useraccountcontrolsettings and press OK
  3. In the User Account Control Settings window, move the slider down and set it to Never notify. set UAC to Never Notify
  4. Press OK to apply the changes and exit.

Once you have disabled the notification option, you should now be able to modify the permissions for the file/folder and the error pop-up should not show up again.

3. Update your drivers and BIOS/UEFI firmware

3.1 Update drivers via manufacturer website

  1. Open your browser and visit the PC manufacturer’s website.
  2. Go to their driver download page and look for the latest driver versions.
  3. For example, for chipset, display adapter like Nvidia drivers, audio, USB3, Bluetooth, network adapter, etc. Go to PC manufacturer's website - install drivers
  4. Now, download and install the driver on your PC.

Expert Tip: Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken. We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.

Restart your PC and check if the Failed to enumerate objects in the container access is denied error on Windows 11 is resolved.

3.2 Update drivers automatically

In order to repair Failed to enumerate objects in the container error, and if doing a driver repair manually seems too time-consuming, we recommend an automated solution.

Missing drivers are often known to cause issues, and manually searching for a driver takes time and needs extensive knowledge of the drivers you are looking for.

A driver repair and installation program, such as DriverFix, will assist you in automatically updating drivers and preventing PC harm caused by installing the incorrect driver version.

In addition, you will obtain a completely thorough report detailing the precise condition of your Windows missing, damaged, or obsolete drivers.

With a few clicks, the program will scan your PC’s hardware and peripherals for potential driver upgrades. Use one to save yourself some valuable time.

⇒ Get Driverfix

3.3 Update the BIOS/UEFI firmware

  1. As the PC boots up and you see the Sign-in screen, hold down the Shift key and click on Restart.
  2. You will now see the Choose an option screen. Click on Troubleshoot. Windows failed to start. A recent hardware or software change might be the cause
  3. Next, click on Advanced options. enable secure boot windows 11 user mode
  4. Now, for more info, follow our guide on how to update BIOS or UEFI firmware to the latest version.

Once done, reboot your PC and check if you now have permission for the folder.

4. Run a chkdsk scan

  1. Press the shortcut key – Win + R and the Run console opens up.
  2. In the search bar, type cmd and press the Ctrl + Shift + Enter keys together to launch Command Prompt with admin access. open elevated command prompt by pressing Ctrl + Shift + Enter together
  3. Now, execute the below command and hit the Enter key (replace D: with the actual letter of the drive if needed): chkdsk D: /F /R run chkdsk command in cmd
  4. The chkdsk utility will now scan the drive (which contains the problem file/folder) for any errors and fix them instantly.

Once done, restart your PC and the Failed to enumerate objects in the container access is denied error should be fixed.

5. Use the Command Prompt to provide permissions

  1. Press the Win + R hotkey to open the Run command.
  2. In the search field, type cmd and press the Ctrl + Shift + Enter keys together to launch the elevated Command Prompt. open elevated command prompt by pressing Ctrl + Shift + Enter together
  3. Now, run the below commands one after another in the Command Prompt window and hit Enter after each one:
    • takeown /F "FULL_PATH_TO_FOLDER" takeown /F "FULL_PATH_TO_FOLDER" /r /d y icacls "FULL_PATH_TO_FOLDER" /grant Administrators:F icacls "FULL_PATH_TO_FOLDER" /grant Administrators:F /tRun command to take ownership of file or folder
  4. Replace FULL_PATH_TO_FOLDER with the path of your user folder, for example, with C:\Windows\System32.
  5. Once the commands are executed, close Command Prompt, restart your PC, and check if you now have the permission.

You can also run the above commands to fix the Failed to enumerate objects in the container error on Windows Powershell.

6. Start Windows in safe mode

  1. Go to the Start menu, click on it and then click on the Power icon.
  2. Press and hold the Shift key on your keyboard, then click on Restart.
  3. Once you reach the Choose an option, select Troubleshoot.Windows failed to start. A recent hardware or software change might be the cause
  4. Next, click on Advanced options.enable secure boot windows 11 user mode
  5. In the Advanced options screen, click on Startup Settings.
  6. On the Startup Settings screen the Restart button.click on Restart on Startup Settings
  7. After your PC restarts, press the number 4 or F4 on your keyboard to start your PC in safe mode.

This will help you identify if any third-party programs are interfering with the folder you want to have access to causing the Failed to enumerate objects in the container error.

Safe Mode helps you to easily identify the program and get rid of it to fix the issue.

7. Perform repair upgrade

  1. Visit Microsoft’s official web page to create a Windows 11 media creation tool. create Windows 11 media creation tool
  2. Now, mount the bootable ISO image file on your PC.
  3. As you reach the installation wizards, follow the on-screen instructions to complete the installation. Run repair upgrade for Windows 11
  4. To know more, follow our guide on how to perform repair install/upgrade.

This will help you reinstall Windows 11 without losing important files, applications, and most of the settings.

Additionally, to make sure that your Windows OS is correctly installed if any repairs are required and if it is optimized for the best performance, you can follow this checklist.

At the same time, if you are wondering how to fix error application security for Windows 10/11, you can refer to our detailed guide on it.

You can also follow the same methods to fix the Failed to enumerate objects in the container error on Windows 10.

However, if you do find an alternative solution to deal with the error, do share it with us in the comments box below.

idee restoro Still having issues? Fix them with this tool:
  1. Download this PC Repair Tool rated Great on TrustPilot.com (download starts on this page).
  2. Click Start Scan to find Windows issues that could be causing PC problems.
  3. Click Repair All to fix issues with Patented Technologies (Exclusive Discount for our readers).

Restoro has been downloaded by 0 readers this month.

This article covers:Topics: