failed to enumerate objects in container access is denied windows 10 code example
Example: failed to enumerate objects in the container access is denied windows 10
//Execute the following commands, pressing the Enter key in-between each command. Make sure to replace “FULL_PATH_HERE” with the path to your affected file or folder.
takeown /F X:\FULL_PATH_HERE
takeown /F X:\FULL_PATH_HERE /r /d y
icacls X:\FULL_PATH_HERE /grant Administrators:F
icacls X:\FULL_PATH_HERE /grant Administrators:F /t
//Close the Command Prompt and try changing the permissions for the file or folder affected.