SeTakeOwnershipPrivilege
About
SeTakeOwnershipPrivilege allows a user to assume ownership of any "securable object", including Active Directory objects, NTFS files and folders, printers, registry keys, services, and processes. This privilege grants WRITE_OWNER
permissions on an object, enabling the user to modify its ownership within the security descriptor. By default, administrators possess this privilege. While it is uncommon for a standard user account to have this privilege, it may be assigned to service accounts responsible for tasks such as running backup jobs and managing VSS snapshots.
Enable Privilege
For this we would use this script: [LINK]
Accessing sensible file
Checking directory ownership
Taking ownership
Confirming Ownership Changed
Modifying File's ACL
Last updated