I recently messed up the permissions of my home folder (c:\users\michal
). I took my laptop hard drive (Windows 10) into a USB external hard drive case. Then I mount the USB drive in another Windows 10. I browsed the users folder. Windows asked me to chaged the persmissions for c:\users\michal
so that I could see what is in this folder. I agreed to do so. When I took back my HDD to my laptop Windows run but I am not able to run some programs, create, modify or delete some files. How do I set the correct permissions for my home folder?
EDIT
To take ownership, I used TakeOwn.exe /f "C:\Users\michal" /a /r /d y
from built-in Administrator account but this produced the following error:
ERROR: The file or directory is corrupted and unreadable.
My question is not a duplicate. The other questions deals with Basically a while back I (very stupidly) changed the permissions on all sorts of system folders, and eventually rendered my computer virtually unusable.
My question deals only with a home folder. Guys, please me more accurate while arguing that a question is a duplicate.
@Ramhound has suggested using icacls "c:/users/michal/*" /q /c /t /reset
Unfortunetly, this won't work either. I get:
Successfully processed 0 files; Failed processing 422 files
secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose
as per RamClown's very first comment link and and the most voted for answer there? I wasn't sure 100% if it's applicable to Windows 10 or not but close enough for you to read up more about at least to confirm and consider testing, etc. Crack open the file%windir%\inf\defltbase.inf
with a text editor such as Notepad and just look over its contents.