File and folder permissions are really important to Windows. Sometimes a user may mess with the permissions causing software or even the operating system to work in an undesired way.
There’s a simple way to solve this kind of problems without headaches, using the ICACLS command.
Launch the command prompt as an Administrator and navigate through the tree of folders you need to fix.
Then launch the command ICACLS * /T /Q /C /RESET
.
ICACLS will reset the permissions of all the folders, files and subfolders. After a while, depending on the number of file, the permissions will be fixed.
Sometimes, you may need to take the ownership of a tree of folders. You can use the command takeown /R /F *
before launching the ICACLS.
Be careful, taking the owenership of system folders may break your operating systems.
Read related articles
A Guide to PowerShell – part 3
Welcome to part 3 of 3 of The Solving A guide to PowerShell. Check also Part 1 and Part 2.
A Guide to PowerShell – part 2
Welcome to part 2 of 3 of The Solving A guide to PowerShell. Click here for Part 1 and Part
A Guide to PowerShell – part 1
Welcome to part 1 of 3 of The Solving A guide to PowerShell. Click here for Part 2 and Part