Run icacls command
Another method to resolve this using the icacls command. However, you will need first to take ownership of the folder and then execute the command. Windows uses the Access Control List to configure permissions for all files and folders. Icacls is a command-line utility that can display and modify the permissions on specified files and apply them.
It comes with a reset option that replaces ACLs with default inherited ACLs for all matching files. We will use the following options to reset
- t – Operates on all specified files in the current directory and its subdirectories.
- q – Suppresses success messages.
- c – Continues the operation despite any file errors. Error messages will still be displayed.
Next, run the following on an elevated command prompt—
You will need admin permission to execute the commands.
icacls * /t /q /c /reset
Specific partition “E” Change E to your partition
ICACLS "E:\*" /reset /T