Jump to content

Subinacl, take ownership when current owner is unknown


Recommended Posts

Posted

I have a script using subinacl and robocopy to take ownership of files and copy them to another location. This usually works fine except when the current owner of the file is not known.

Should subinacl have any problems setting ownership in this case? Here is the script I am using:

subinacl /errorlog=error.log /subdirectories "%SOURCE%/*.*" setowner="Administrators" grant=Administrators=F

robocopy "%SOURCE%" "%DEST%" /copyall /zb /w:0 /r:10 /a-:sh /s /xd "temporary internet files" /xf *.dll *.sys *.ocx


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...