Take ownership of a file or folder

Take ownership of a file or folder by the SID (security identifier) ​​of the user or group.

Options

path - path to file or folder

sid - SID of the user or group

SIDs of some major user groups:

  • S-1-1-0             All
  • S-1-5-32-544     Administrators
  • S-1-5-32-545     Users
  • S-1-5-11           Verified
Result

True if the operation is successful, False if not.

Author: admin