Generally in Windows, permissions help 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 folders/files and selecting Properties. From here by switching to the Security tab, we can configure the permissions.
However, sometimes due to a 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, the 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 the sequence. That is, first click Change link for Owner in the Advanced Security Settings window.
Then click Advanced option in Select User or Group window, and then click Find Now in 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. The previous step takes you back to the 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.
Having done this, you need to again open the Properties window > Security tab > Advanced > Permissions > Add > Select principle > Enter your user account name > OK.
Do note that when you change Permissions, it does make your PC a ‘bit less secure’.
If you are unable to change the Permission, then you need to change UAC settings. Make it Never notify. Once you have carried out the set task successfully, you may revert UAC settings to default.
Let us know if this worked for you.