I bought a new pc and installed my old HDD as secondary drive , how can I take ownership of all files and folder on that harddrive.
I remember there was some commandline tool icals or something which could do that recursivly.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
I remember there was some commandline tool icals or something
More info here:
I think you're looking for
You can also use the older
cacls.exe, but watch out.
cacls /G will overwrite the entire ACL by default, which never seems to be what I want, so you have to pass
/E to "edit" the ACL. On
icacls /grant the behavior is reversed: edit by default, pass
:r to replace the entire ACL.
icacls also supports setting the object/container inherit flags (
cacls does not), but you probably don't care about that right now.