I have badly messed up my hard drive permissions.
I was trying to deny guest accounts from accessing one of my logical partitions. While disabling the read, write permissions I have disabled read permission of everyone.
Now one of my drive is not accessible.
I tried changing the properties back but it needs read permission to do so. Hence, I couldn't reset.
I went through another question and tried icacls F: /t /grant Everyone:FF. I am getting access denied error message.
I formatted my C drive hoping the meta deta would be deleted. While formatting I tried icacls command to give read permission but I was getting access denied.
Please help in resolving this issue.
UPDATE
- I formatted the C drive which had my Windows OS. I did not format the partition which is having a lot of valuable data - Years of work will be lost. Formatting would be worst option for me.
- I am using icacls command on the drive which has no read/write permission.
- I Went to Properties of F drive, Under security, I choose the groups and I checked deny on full control. With reflex I clicked on ok rather than cancel. Messed pretty bad.
takeown
beforeicacls
? faqforge.com/windows/…takeown
andicacls
are used, but the difference is that they are used via logon to the real Administrator account which is normally disabled. If this works for you, I will summarize the procedure in an answer.NT AUTHORITY\SYSTEM
. It is a powerful account that has unrestricted access to all local system resources. You can use PsExec to login to that account in a command prompt. The command to do that would bepsexec -s cmd
(in elevated command prompt). From there try to change permissions.