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


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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