New
#1
How to reset default file permissions for these directories?
The other day, I was trying to fix Windows Default Apps not working by adding "ALL APPLICATION PACKAGES" to the following directories as indicated here:
https://support.microsoft.com/en-us/kb/2798317
However, it seems to have messed up the permissions as what I did was take ownership and then added both myself and "ALL APPLICATION PACKAGES".
My question is, how do I reset the permissions of the following folders and their sub folders and sub files to the defaults:
C:\Program Files
C:\Windows
C:\Users
Does this command below do it?
icacls * /T /Q /C /RESET
My other question is will it fix the folders to the default inheritance if I enabled inheritance to child folders/files for a folder that was by default disabled or if I disabled inheritance to the child folders/files for a folder that is by default enabled?
Other than the above, Am I correct that I will have to manually change the permission for each users folder under C:\Users so they own and have full control of that folder.