Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Facebook Twitter Instagram
Tech News Today
  • Hardware
    • Motherboards
    • CPUs
    • Graphic Cards
    • RAM
    • SSDs
    • Computer Cases
    • Monitors
    • Peripherals
    • Power Supply Unit
    • PC Builds
    • Computer Tips
  • Software
  • Operating System
    • Windows
    • Mac
    • Linux
  • Gaming
  • Mobile
  • Console
  • More
    • Internet
    • Networking
    • Security
    • Buyer’s Guide
    • Gadgets
    • Laptops
    • Reviews
    • How To
    • News
Tech News Today
Home»Windows»5 Fixes to “Failed to enumerate objects in the container” Error in Windows

5 Fixes to “Failed to enumerate objects in the container” Error in Windows

Deependra PangeniBy Deependra PangeniJuly 27, 2022
failed-to-enumerate-objects-in-the-container

Windows provides a security mechanism for files and folders that lets you define user accounts to access it. Sometimes, when trying to alter the permission settings for a folder, you might have come across the error message Failed to enumerate objects in the container.

Mostly, this error occurs when you don’t have ownership over the folders or say you don’t have administrator privileges. You will also encounter the error if any system files are corrupted. But don’t worry! This problem is solve able and has some simple fixes.

In this article, you will learn a few proven ways to fix this error in Windows.

Table of Contents

  • Fix: Failed to enumerate objects in the container
    • Take Over Ownership and Change Permissions
    • Use Commands to Grant Permissions
    • Run CHKDSK, SFC and DISM Commands
    • Disable UAC Notifications
    • Boot into Safe Mode
  • How to Change File and Folder Permission in Windows?

Fix: Failed to enumerate objects in the container

Since giving access to your files and folders deals with privacy, you should sort out this problem as soon as possible. You can simply perform minor tweaks in your folder settings and easily sort out the issue.

Here, we have compiled a list of 5 fixes you can apply when facing this error. Let’s dive straight into them.

Take Over Ownership and Change Permissions

The first thing you can do when you face this error is change the file or folder ownership manually. This is the most recommended fix by Microsoft, and many users reported that they sorted out the issue after applying this fix.

Follow these steps to change the file ownership manually:

  1. Navigate to the files or folder whose permissions you want to change. Right-click over it and select Properties from the context menu.
  2. Jump to Security tab and then click Advanced.
    security_tab_advanced
  3. Click Change next to the Owner name.
  4. In the next popup, type the account name in the text field under Enter the object name to select and click Check Names. Your account name will appear with an underline if it is found. Else click the Advanced button and locate your username.
    check_names
  5. Click OK button.
  6. In the next window, check both options: Replace owner on sub containers and objects and Replace all child object permission entries with inheritable permission entries from this object.
    check both options to replace
  7. Click Apply button and then confirm the changes in the confirmation dialog box.
  8. Click Add button in the Advanced security settings window and click Select a Principal in the Permission Entry window.
  9. In the Select User or Group popup, type Everyone in Enter the object name to select text field and click Check Names.
  10. Click OK and then check the Full Control option under Basic permissions.
    basic_permissions
  11. Click OK button on every window you have opened to save the changes and exit.
  12. Now try to set the permissions for the desired file. You should not encounter the problem.

Use Commands to Grant Permissions

The first method should work like a charm but if you still face the error while setting the permissions, try an elevated command prompt method to grant the permissions. Here’s how:

  1. In the Windows search box, type Command Prompt.
  2. Right-click over the top result and select Run as administrator.
  3. Click Yes in the UAC popup.
  4. Copy and paste the following commands serially.
    • takeown /F X:\Full_Path_to_Folder
    • takeown /F X:\Full_Path_to_Folder /r /d y
      cmd takeown commands
    • icacls X:\Full_Path_to_Folder /grant Administrators:F
    • icacls X:\Full_Path_to_Folder /grant Administrators:F /t
      icacls command
  1. Consider pressing the Enter key after each command and replacing X:\Full_Path_to_Folder with the file/folder location whose permissions you are trying to change. Full path looks like: C:\Users\Deepen\Documents\Lightshot
  2. After you execute the commands successfully, try changing the permissions again and see if the issue persists.

Run CHKDSK, SFC and DISM Commands

CHKDSK mainly deals with checking and fixing the issues in the file system. It checks for errors on your hard drive and repairs them. Try running it if the above two methods do not solve your problem. Running the CHKDSK command can help identify and fix issues with corrupted file systems and solve the error. Follow these steps to run it:

  1. In the Windows search box, type Command Prompt, right-click over it, and select Run as administrator.
  2. Type chkdsk /r and hit Enter.
    chkdsk r command
  3. Type chkdsk /f and hit Enter.
  4. The disk checking process will start after this. Or you may see Chkdsk cannot run because the volume is in use by another process. Would you like to schedule this volume to be checked the next time the system restarts? (Y/N) message. If you see this message, press the “Y” key on your keyboard and hit Enter.
  5. Restart your computer to run the disk checking process.

You can also use SFC and DISM commands since they also deal with repairing the corrupted system files. Run the SFC command at first and see if the issue persists while changing permissions. If it does, run the DISM command afterward. Else no need to run the DISM command. Follow these steps:

  1. In the Command Prompt window, type SFC /scannow and hit Enter key to run SFC tool.
    sfc-scannow-command
  2. Type Dism /Online /Cleanup-Image /RestoreHealth and press Enter key to run the DISM tool.
    dism-command

Disable UAC Notifications

User Account Control (UAC) is a kind of security mechanism built-in into Windows. It prompts an administrator for confirmation before any program tries to make changes to the computer. However, the UAC feature sometimes may be the culprit behind the failed to enumerate objects error. 

If you disable this, you will not be asked for any confirmations when you try changing the folder permissions. And probably, you may be able to change permissions without any issue. Here’s how to disable the UAC notifications:

  1. Hit Windows + S key on your keyboard, type Change User Account Control Settings, and open it.
  2. In the new window that opens, you will see a slider between Always notify and Never notify. Slide it to Never notify and click the OK button.
    never_notify
  3. Click Yes in the UAC dialog box.

Note: Since UAC control is useful in notifying you about the changes that will be made to your PC, disabling it permanently is not recommended. You must re-enable it if you can set the folder permissions successfully.

Boot into Safe Mode

Booting your computer in safe mode loads only the elementary programs and drivers set required for booting the PC. If any other applications or programs are causing the error, you will easily figure it out once you boot in safe mode. Follow these steps to boot into safe mode:

  1. Right-click the Start button and select Run from the list of options.
  2. Type msconfig in the text field and hit Enter to open the System Configuration application.
  3. Navigate to the Boot tab and check the box next to Safe boot under Boot options.
  4. Select Minimal and then click Apply > OK.
    safe_boot_minimal
  5. Restart your computer to boot into safe mode.

How to Change File and Folder Permission in Windows?

You can specify which users to give permissions to a particular folder in Windows. You can further define what actions they can perform like Full Control, Modify, or just Read-only. Follow these steps to change the file and folder permission in Windows:

  1. Locate the folder whose permissions you want to change. Right-click over it and select Properties from the context menu.
  2. Click the Security tab. You will see two sections within it. In the Group or user names section, you will see the accounts that exist in the system. In the Permissions section, you will see what that particular account is permitted to do.
  3. Select the user account whose permissions you want to change from the upper section and click the Edit button.
    setting permissions
  4. In the next popup window, check the box beside the permissions type and click the OK button.
fix
Deependra Pangeni
  • Twitter
  • LinkedIn

Meet Deependra Pangeni, A professional Computer Engineer who has been writing about technology for many years. He is also involved in different robotic projects and loves tinkering with circuit boards. He is always researching new ways to improve the website's user experience and make it easy for people to find the information they need. At TechNewsToday he mainly deals with how-to and fixes contents for a range of TV and TV products like remotes, cables and streaming devices. Along with the TV, he also specializes in hardware and software troubleshooting for printers and Windows. Deependra's passion for simplifying complex technical information for non-technical audiences is evident in his work and he is dedicated to producing high-quality content that is easy to understand. When he is not working, he enjoys gathering with his friends, partying and traveling. He is also an active member of the technical community groups and regularly participates in tech meetups. You can contact him at deepen@technewstoday.com

Related Posts

firmware vs software

Firmware Vs Software – What’s the Difference?

March 8, 2023
update sound drivers

How to Update Sound Drivers on Windows

March 7, 2023
nvidia-users-account-is-locked

Fixed: NVIDIA Users Account is Locked

March 7, 2023
windows-failed-to-start

Fixed: Windows Failed to Start A Recent Hardware or Software Change Might Be The Cause

March 7, 2023
computer-wont-shut-down

Computer Won’t Shut Down? Here’re 8 Ways to Fix It

March 5, 2023
amd-software-not-opening

How to Fix AMD Software Not Opening

March 3, 2023
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
firmware vs software

Firmware Vs Software – What’s the Difference?

March 8, 2023
keyboard sizes

All the Types of Keyboard Sizes Explained

March 8, 2023
Memory-Compression

What is Memory Compression in Windows? Should You Enable or Disable It

March 1, 2023
You may also like
keyboard is double typing

Keyboard is Double Typing? Here’re 6 Ways to Fix it

March 9, 2023
enlarge-hp-printer

How to Enlarge Copy on HP Printer

March 9, 2023
reset msi bios

How to Reset MSI BIOS

March 9, 2023
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

November 10, 2022
Facebook Twitter Pinterest
  • Home
  • About Us
  • Our Team
  • Editorial Guidelines
  • Privacy Policy
  • Affiliate Disclosure
© 2023 TechNewsToday, editor@technewstoday.com | Tech Central Pvt. Ltd.

Type above and press Enter to search. Press Esc to cancel.