Generally in Windows, permissions helps us to keep content private or public. Thus it is very easy for us that we assign such permissions to our files and folders, such that others may invoke or not, according to the requirement. The permissions for folders/files can be changed with right click on a folders/files and selecting Properties. From here by switching to Security tab, we can configure the permissions.
However, sometimes due to clash of permissions or incorrect settings, you may not able to changes permissions and face error while doing so. In such scenarios, the following error is most common:
Failed to enumerate objects in the container, Access is denied.
You’re more likely to face this error when you’re not the owner of the content, whose permissions you’re changing about. Thus in such cases, following are the exact steps you should take to avoid the error:
1. Firstly, right click over the folder/file whose permissions you’ve to change. Select Properties.
2. Next, in the Properties windows, switch to Security and hit Advanced option there.
3. Moving on, in the below shown screen, you have to click number-wise to follow sequence. That is, first click Changelink for Owner in the Advanced Security Settings window. Then click Advanced option in Select User or Group window, and then click Find Now in the another window so opened. Here you need to select your user account under the Search Results so listed. Then click OK -> OK -> Apply -> OK.
4. Previous step takes you back to window shown in step 2, hence click Advanced option there. Now in the Advanced Security Settings, you must check Replace owner on subcontainers and objects and Replace all child object permissions entries with inheritable permission entries from this object. Click Apply followed by OK.
Thus finally, you can change permissions the window shown in step 2. No error would be encountered by you now.
Do note that when you change Permissions, it does make your PC a ‘bit less secure’.
Verified by the Technical Department WOUGNET and for more details on this please read here