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
Configuring and using Windows Deployment Services (WDS)
A 2026 guide to WDS: installation, PXE boot, boot/install images, and the limitations introduced with Windows 11 and Server 2025.
How to install and configure Windows Server Update Services (WSUS)
How to install and configure WSUS in 2026: client groups, approval rules, database maintenance, and the critical CVE to patch.
Sysprep in 2026: practical guide for sysadmins and MSPs
What Sysprep is, when to use it, and how to properly generalize a Windows image before distribution or cloning.