Readers help support Windows Report. We may get a commission if you buy through our links.
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
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
- Right-click on the problem file or folder and select Properties.
- Go to the Security tab and click on Advanced.
- In the Advanced Security Settings window, click on Change next to Owner.
- This will open the Select User or Group dialogue box, type the user account name, and select Check Names.
- Once you see an underline below the account name, press OK to save changes and return to the Advanced Security Settings window.
- Here, check the box next to Replace owners on sub containers and objects.
- Next, select the box next to Replace all child object permission entries with inheritable permission entries from this object.
- Press Apply and then OK to save the changes and return to the Properties dialogue box.
- Here, under the Security tab, go to the Permissions field below, and click on Edit.
- Now, next to Full control, select Allow.
- Press Apply and OK to apply changes and exit.
1.2 Add your user account name
- Go to the problem folder, right-click and select Properties.
- Now, back in the Properties tab, under the Security tab, click on Advanced.
- In the Advanced Security Settings window, go to Permissions and click on Add.
- As the Permissions Entry window opens, click on Select a principal.
- You will now see the Select User or Group dialogue box.
- Here, go to the Enter the object name to select field and type your user account name.
- Press the Check names button. Press OK to save the changes.
- 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.
- You need administrator permission to delete folder on W10/11
- You don’t have permission to open this file in Windows 10/11
- You have been denied permission to access this folder [ERROR FIX]
2. Disable User Account Control
- Press the Win + R shortcut key combination to launch the Run command.
- Type useraccountcontrolsettings in the search bar and hit Enter.
- In the User Account Control Settings window, move the slider down and set it to Never notify.
- 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
- Open your browser and visit the PC manufacturer’s website.
- Go to their driver download page and look for the latest driver versions.
- For example, for chipset, display adapter like Nvidia drivers, audio, USB3, Bluetooth, network adapter, etc.
- Now, download and install the driver on your PC.
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 Outbyte Driver Updater, 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 Outbyte Driver Updater
3.3 Update the BIOS/UEFI firmware
- As the PC boots up and you see the Sign-in screen, hold down the Shift key and click on Restart.
- You will now see the Choose an option screen. Click on Troubleshoot.
- Next, click on Advanced options.
- 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
- Press the shortcut key – Win + R and the Run console opens up.
- In the search bar, type cmd and press the Ctrl + Shift + Enter keys together to launch Command Prompt with admin access.
- 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
- 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
- Press the Win + R hotkey to open the Run command.
- In the search field, type cmd and press the Ctrl + Shift + Enter keys together to launch the elevated Command Prompt.
- 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 /t
- Replace FULL_PATH_TO_FOLDER with the path of your user folder, for example, with C:\Windows\System32.
- 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
- Go to the Start menu, click on it and then click on the Power icon.
- Press and hold the Shift key on your keyboard, then click on Restart.
- Once you reach the Choose an option, select Troubleshoot.
- Next, click on Advanced options.
- In the Advanced options screen, click on Startup Settings.
- On the Startup Settings screen the Restart button.
- 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
- Visit Microsoft’s official web page to create a Windows 11 media creation tool.
- Now, mount the bootable ISO image file on your PC.
- As you reach the installation wizards, follow the on-screen instructions to complete the installation.
- 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.
One of our readers suggested that a corrupt Recycle Bin might be the source of this problem. In that case, follow the highlighted link to fix this problem quickly.
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.
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.
It all started with the evolution of mobile phones and Google, and that has now settled with Windows.
Если при попытке изменить, открыть или удалить папку или файл в Windows вы получаете сообщения о том, что вам отказано в доступе, «Нет доступа к папке», «Запросите разрешение на изменение этой папки» и аналогичные, то вам следует изменить владельца папки или файла, о чем и поговорим.
Есть несколько способов стать владельцем папки или файла, основные среди которых — использование командной строки и дополнительные настройки безопасности ОС. Есть также и сторонние программы, позволяющие изменить владельца папки в два клика, на одного из представителей которых тоже посмотрим. Все описанное ниже подходит для Windows 11, Windows 10 и предыдущих версиях системы.
Использование команды takeown для изменения владельца объекта
Для того, чтобы стать владельцем того или иного элемента с использованием способов ниже, вы должны иметь права администратора на компьютере. Кроме этого, не следует изменять владельца для всего системного диска — это может повлечь нестабильную работу Windows. Если вы хотите стать владельцем папки для того, чтобы удалить ее, а иначе она не удаляется, потребуется также предоставить необходимые права соответствующему пользователю (простого назначения владельца может быть недостаточно).
Изменение владельца папки или файла возможно с помощью командной строки. Имеются две команды, первая из них — takeown. Для ее использования, запустите командную строку от имени Администратора, в Windows 11 и Windows 10 это можно сделать через поиск в панели задач с последующим выбором пункта «Запуск от имени администратора». В командной строке, в зависимости от того, владельцем какого объекта вам нужно стать, введите одну из команд:
- takeown /F «полный путь к файлу» — стать владельцем указанного файла. Чтобы сделать всех администраторов компьютера владельцами, используйте параметр /A после пути к файлу в команде.
- takeown /F «путь к папке или диску» /R /D Y — стать владельцем папки или диска. Путь к диску указывается в виде D: (без слэша), путь к папке — C:\Folder (также без слэша).
При выполнении данных команд вы получите сообщение о том, что вы успешно стали владельцем конкретного файла или отдельных файлов в указанной вами папке или на диске (см. скриншот).
Как было отмечено ранее, простое изменение владельца объекта, не обязательно означает, что вы сможете удалить, переименовать или иным образом изменить его. Для этого также нужно предоставить необходимые права пользователю, о чём в следующих двух частях инструкции.
Команда icacls
Еще одна команда, которая позволяет получить доступ к папке или файлам (изменить их владельца) и получить необходимые права — icacls, использовать которую следует так же, в командной строке, запущенной от имени администратора.
Для установки владельца используйте команду в следующем виде (пример на скриншоте):
icacls "путь к файлу или папке" /setowner "Имя_пользователя" /T /C
Пути указываются аналогично предыдущему способу.
Команды из первой и второй части можно сочетать. Например, следующие две команды сделают вас владельцем папки и предоставят полные права доступа к ней для группы Администраторы:
takeown /F D:\ПУТЬ /R /A icacls D:\ПУТЬ /T /Inheritance:e /grant Администраторы:F
И общий пример для того, чтобы предоставить полный доступ пользователю к какой-либо папке или файлу с помощью ICACLS:
ICACLS "ПУТЬ_К_ПАПКЕ" /grant:r "имя_пользователя":(OI)(CI)F
Получение доступа с помощью настроек безопасности
Ещё один способ — использовать лишь мышь и интерфейс Windows, не обращаясь к командной строке.
- Кликните правой кнопкой мыши по файлу или папке, доступ к которому нужно получить (стать владельцем), в контекстном меню выберите пункт «Свойства».
- На вкладке «Безопасность» нажмите кнопку «Дополнительно».
- Напротив пункта «Владелец» нажмите «Изменить».
- В открывшемся окне нажмите кнопку «Дополнительно», а в следующем — кнопку «Поиск».
- Выберите в списке пользователя (или группу пользователей), которого нужно сделать владельцем элемента. Нажмите Ок, затем — снова Ок.
- Если вы изменяете владельца папки или диска, а не отдельного файла, отметьте также пункт «Заменить владельца подконтейнеров и объектов».
- Нажмите Ок.
- Вернитесь на вкладку «Безопасность» в свойствах папки или файла, нажмите кнопку «Изменить» под списком пользователей и групп и предоставьте необходимый уровень доступа нужным пользователям или их группам (которых можно добавить в список аналогично тому как мы делали на 4-м шаге), например — полный доступ.
На этом вы стали владельцем указанного объекта Windows, а также получили права на доступ к нему. Сообщения о том, что нет доступа к папке или файлу вас не должны больше потревожить.
Другие способы стать владельцем папок и файлов
Есть и другие способы решить проблему «отказано в доступе» и быстро стать владельцем, например, с помощью сторонних программ, встраивающих пункт «Стать владельцем» в контекстное меню проводника. Одна из таких программ — TakeOwnershipPro, бесплатная и, насколько я могу судить, без чего-то потенциально нежелательного. Аналогичный пункт в контекстное меню можно добавить и путем редактирования реестра Windows. Есть и другие похожие утилиты, подробнее: Как добавить пункт Стать владельцем в контекстное меню папок и файлов Windows.
Однако, с учетом того, что подобная задача возникает сравнительно редко, я не рекомендую устанавливать стороннее ПО или вносить изменения в систему: на мой взгляд, лучше изменить владельца элемента одним из способов «вручную».
Разработка собственного фреймворка для тестирования в C#
UnmanagedCoder 04.05.2025
C# довольно богат готовыми решениями – NUnit, xUnit, MSTest уже давно стали своеобразными динозаврами индустрии. Однако, как и любой динозавр, они не всегда могут протиснуться в узкие коридоры. . .
Распределенная трассировка в Java с помощью OpenTelemetry
Javaican 04.05.2025
Микросервисная архитектура стала краеугольным камнем современной разработки, но вместе с ней пришла и головная боль, знакомая многим — отслеживание прохождения запросов через лабиринт взаимосвязанных. . .
Шаблоны обнаружения сервисов в Kubernetes
Mr. Docker 04.05.2025
Современные Kubernetes-инфраструктуры сталкиваются с серьёзными вызовами. Развертывание в нескольких регионах и облаках одновременно, необходимость обеспечения низкой задержки для глобально. . .
Создаем SPA на C# и Blazor
stackOverflow 04.05.2025
Мир веб-разработки за последние десять лет претерпел коллосальные изменения. Переход от традиционных многостраничных сайтов к одностраничным приложениям (Single Page Applications, SPA) — это. . .
Реализация шаблонов проектирования GoF на C++
NullReferenced 04.05.2025
«Банда четырёх» (Gang of Four или GoF) — Эрих Гамма, Ричард Хелм, Ральф Джонсон и Джон Влиссидес — в 1994 году сформировали канон шаблонов, который выдержал проверку временем. И хотя C++ претерпел. . .
C# и сети: Сокеты, gRPC и SignalR
UnmanagedCoder 04.05.2025
Сетевые технологии не стоят на месте, а вместе с ними эволюционируют и инструменты разработки. В . NET появилось множество решений — от низкоуровневых сокетов, позволяющих управлять каждым байтом. . .
Создание микросервисов с Domain-Driven Design
ArchitectMsa 04.05.2025
Архитектура микросервисов за последние годы превратилась в мощный архитектурный подход, который позволяет разрабатывать гибкие, масштабируемые и устойчивые системы. А если добавить сюда ещё и. . .
Многопоточность в C++: Современные техники C++26
bytestream 04.05.2025
C++ долго жил по принципу «один поток — одна задача» — как старательный солдатик, выполняющий команды одну за другой. В то время, когда процессоры уже обзавелись несколькими ядрами, этот подход стал. . .
Продвинутые List Comprehension в Python
py-thonny 04.05.2025
Когда я впервые столкнулся с list comprehension в Python, это было похоже на открытие тайной комнаты в знакомом доме. Вроде бы обычный цикл, но настолько элегантный, что заставляет переосмыслить. . .
Confluent Kafka Go и потоковые приложения в реальном времени на Golang
golander 03.05.2025
Мир обработки данных перевернулся, когда в 2011 году LinkedIn открыл исходный код Kafka – распределённой системы передачи сообщений, разработанной для внутренних нужд компании. Изначально Кафка. . .
Ноутбук Lenovo IdeaPad Gaming 3 15IMH05, Windows 10 Home версия 20H2 сборка 19042.630
Не получается сменить владельца с системы на себя для папок и файлов, чтобы получить доступ к ним. Хотя учетная запись у меня с правами администратора. Когда во вкладке Безопасность пробую сменить владельца и выбираю пункт «Заменить владельца подконтейнеров и объектов», появляется «Ошибка при применении параметров безопасности. Не удалось выполнить перечисление объектов в контейнере. Отказано в доступе.» На прошлом ноутбуке Asus получалось сменить владельца и получить права доступа, а на новом Lenovo никак. Уже меняла Настройки контроля учетных записей, сдвинув ползунок на отключение контроля учетных записей, все равно не помогло. Установленный антивирус Mcafee тоже не дает удалить, нет прав доступа, даже в диспетчере задач не дает закрыть процессы. Чтобы изменить или отключить обновление винды, тоже нет прав доступа.
Кто-нибудь может помочь? Не понимаю, почему на старом ноуте получалось получить права доступа, а в Lenovo не даёт никак
-
Вопрос задан
-
2467 просмотров