HomeWindowsFix “Failed To Enumerate Objects In The Container” Windows 10/11

Fix “Failed To Enumerate Objects In The Container” Windows 10/11

-

“Failed to enumerate objects in the container. Access is Denied” error can be encountered when you try to change the permission of a file or folder. This issue is generally encountered when there is no admin access to the file or the folder for which you want to change the permissions. Other common reasons causing this issue are incorrect folder settings, conflicting apps, user account control, and more.

Nothing to worry about, even if this issue bugs you out from changing the permission. There are several methods that you can follow to fix the “Failed to enumerate objects in the container” error on Windows PC.

Fix “Failed To Enumerate Objects In The Container” Windows 10/11

Fix Failed To Enumerate Objects In The Container onWindows 10/11


In this article, we will discuss all the ways to fix this issue. 

Running Command In The Command Prompt

You can use Command Prompt to fix this issue. To do so, follow the steps given below-

  • Press the Windows key on your keyboard, and then type CMD. Select Command Prompt, and then click on Run as Administrator

How To Fix “Failed To Enumerate Objects In The Container” Windows 10/11 Error

  • Here, execute the commands given below one-by-one-
    • takeown /F X:\FULL_PATH_TO_FOLDER
    • takeown /F X:\FULL_PATH_TO_FOLDER /r /d y
    • icacls X:\FULL_PATH_TO_FOLDER /grant Administrators:F
    • icacls X:\FULL_PATH_TO_FOLDER /grant Administrators:F /t

How To Fix “Failed To Enumerate Objects In The Container” Windows 10/11 Error

Note- Before you execute the above commands, you will have to change FULL_PATH_TO_FOLDER to the full address of the folder. 

If you don’t know how you can get the path to the older, then follow the steps given below to do so-

  • Press Windows + E key combo to open File Explorer
  • Head to the folder or the file location for which you want to change the permissions. 
  • Once inside the folder, click on the address bar at the top and copy the folder address. 

How To Fix “Failed To Enumerate Objects In The Container” Windows 10/11 Error

  • Now, you can paste the path to the folder instead of FULL_PATH_TO_FOLDER in the commands above. 

Change Ownership Of The Folder

This error will most likely occur if you don’t have the correct file or folder permissions. In this case, you can try changing the folder ownership, which should fix the issue. To do so, follow the steps given below-

  • Right-click on the folder/file on which you are getting this error, then click on Properties

How To Fix “Failed To Enumerate Objects In The Container” Windows 10/11 Error

  • Under the Security tab, click on the Advanced option. 

Advanced

  • Then click on the Change option next to the owner.

Change

  • Under the Enter the object name select Enter the username and click on Check Names

Check Names

  • Now click on the check mark options “Replace owner on sub containers and objects” and “Replace all child object permission entries with inheritable permission entries from this object.”

Replace Owner on Subcontainers and Objects

  • Then click Apply and then OK to continue ahead.
  • Now at the Security tab again, check if Everyone is present under Group or user names section.
  • If you don’t see the Everyone, then click on Advanced.

Advanced

  • Then click on Add button.

Add

  • After that, click on Select a principal.

Select a Principal

  • Now under Enter the object name to select, type Everyone, and click on Check names.

Everyone

  • Click on Apply and then on OK to save the changes.

Deny All Permissions For Administrator

If changing the folder ownership didn’t help fix the issue, you will have to deny all the permissions to an administrator. You can do so by following the steps given below-

  • Right-click on the folder for which you want to deny the permissions for administrator, and then click on Properties from the context menu. 

How To Fix “Failed To Enumerate Objects In The Container” Windows 10/11 Error

  • Now, click on the Security tab in the Properties window. 

How To Fix “Failed To Enumerate Objects In The Container” Windows 10/11 Error

  • Under the Group or user names section, click on Edit

How To Fix “Failed To Enumerate Objects In The Container” Windows 10/11 Error

  • Now, select Administrators and check all the checkboxes under Deny

Deny Permissions

  • Now, click on Apply and then on OK to save the changes. 

Disable User Account Control

Another thing you can do to fix the ‘Failed to enumerate objects in the container’ error in Windows is disabling the user account controller. Given below are the steps to do so-

  • Click the Start icon on the taskbar, and search for Change User Account Control Settings. Now, press Enter to open it. 

Change User Account Control Settings

  • Here, drag the slider down to Never Notify and click on OK

Never Notify

  • Restart your PC to save the changes you have made. 

Conclusion

We hope the above guide help in fixing the ‘Failed to enumerate objects in the container’ error in Windows. If this article did help you solve the issue, let us know in the comment section below.  

ALSO READ:

Anurag Jain
Anurag Jainhttps://itechhacks.com
Anurag is a Senior content analyst with 4 years of experience in the industry. Based in India, He is extremely skilled at Windows related to How to Troubleshooting matters. His favorite topics are Windows 11, Android, and How To's.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

LATEST