Documentation Index
Fetch the complete documentation index at: https://mintlify.com/the-useless-one/pywerview/llms.txt
Use this file to discover all available pages before exploring further.
get-objectowner reads the nTSecurityDescriptor of any Active Directory object and extracts the owner field from its security descriptor. Ownership in Active Directory carries implicit permissions — an owner can always modify the DACL of their own object, making this information highly relevant during privilege-escalation analysis. The command accepts the same flexible object identifiers as get-adobject (SID, samAccountName, or display name, with wildcard support) and optionally resolves raw owner SIDs into their corresponding distinguished names for readability.
Synopsis
Parameters
Connection
IP address of the Domain Controller to target.
Name of the domain used for authentication (e.g.
contoso.com).Username to authenticate with against the Domain Controller.
Password associated with the user account.
NTLM hashes for pass-the-hash authentication. Format:
[LMHASH:]NTHASH.Use Kerberos authentication. Credentials are read from the ccache file referenced by the
KRB5CCNAME environment variable. Falls back to command-line credentials if no valid ticket is found.Force a TLS-encrypted connection to the Domain Controller.
Force SIMPLE LDAP authentication instead of the default NTLM/SASL binding.
SChannel (Certificate Authentication)
Path to the certificate file associated with the user account, used for SChannel-based authentication.
Path to the private key file associated with the user certificate.
Object Selection
SID of the object whose owner you want to retrieve. Wildcards are accepted.
samAccountName of the object to look up. Wildcards are accepted (e.g. svc_*).Display name of the object to look up. Wildcards are accepted (e.g.
Domain*).The domain to query. Defaults to the domain of the authenticated user.
Additional ADS path to restrict the LDAP search base (e.g.
OU=Groups,DC=contoso,DC=com).A raw LDAP filter string appended to the generated query, enabling arbitrary filtering beyond the built-in selectors.
Resolution
Resolve the owner SID to its distinguished name. Without this flag, the raw SID string is returned.
Output
Print results as JSON instead of the default human-readable format.
Verbosity of log output written to stderr. Choices:
CRITICAL (default), WARNING, DEBUG, ULTRA.Usage Examples
SChannel Support
Certificate-based SChannel authentication is supported via--cert and --key. Combine with --tls to connect over LDAPS.