2

I'm trying to find the correct commands to reset each of my hard drives permissions to remove all of the incorrect, outdated groups/usernames that have built up on folders over time and reset the permissions to their defaults.

I've tried running commands like:

TAKEOWN /F F:\ /R /D Y

It appears to work but doesn't help,

I also tried the likes of:

icacls "F:\Example" /reset /T

But permissions are deneid because files are read-only for some reason so I need to reset the permissions too but it doesn't appear to work...

attrib -H -S F:\*.* /S /D

1 Answer 1

1

You'll probably have to do it in two sweeps.
First, to take ownership -

icacls.exe /setowner <username> /t /c /q

Second, to reset the ACL's back to the inherited defaults -

icacls.exe /reset /t /c /q
4
  • The reason your code isn't showing as code is because you need to put a new line between your messages & the part you want shown as code.
    – Ryflex
    Apr 2, 2016 at 18:39
  • Thanks...the little hints at the side should mention that. Apr 2, 2016 at 18:43
  • Unfortunately it doesn't resolve my problem. files and folders still have permissions setup for other users that aren't the defaults...
    – Ryflex
    Apr 4, 2016 at 18:06
  • Now that you have owner access, are you able to add/remove accounts to the ACL? Or just select the "Enable inheritance" checkbox? Apr 6, 2016 at 14:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .