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-adobject is the foundational object-lookup command in PywerView. It queries your domain controller over LDAP and returns any Active Directory object — users, groups, computers, or arbitrary objects — that matches a given SID, samAccountName, or display name. Wildcard patterns are accepted for all three identifiers, making it straightforward to enumerate ranges of objects in a single call. You can further narrow results with a custom LDAP filter or limit the returned data to a specific list of attributes, which is useful when working with large directories or piping output into downstream analysis.
Synopsis
Parameters
Connection
IP address of the Domain Controller to target.
Name of the domain used for authentication. Typically matches the AD domain name (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 to query. Wildcards are accepted (e.g.
S-1-5-21-*-500).samAccountName of the object to query. Wildcards are accepted (e.g. svc_*).Display name of the object to query. Wildcards are accepted (e.g.
admin*).The domain to query. Defaults to the domain of the authenticated user.
Additional ADS path to restrict the LDAP search base (e.g.
OU=Servers,DC=contoso,DC=com).A raw LDAP filter string appended to the generated query (e.g.
(objectClass=computer)). Allows arbitrary filter expressions beyond the built-in selectors.Space-separated list of LDAP attribute names to return. When omitted, all available attributes are 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
When your environment uses certificate-based authentication, pass the user certificate and its private key with--cert and --key. These flags enable SChannel authentication over LDAPS and require that --tls is also set (or that the DC is configured to accept TLS).