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.
find-gpolocation is the inverse of find-gpocomputeradmin: instead of asking “who can admin this machine via GPO?”, it asks “which machines can this user or group admin via GPO?” The command accepts a username or group name, locates the GPO group-membership entries that include that principal, identifies which OUs those GPOs are linked to, and then returns all computer objects that fall under those OUs. By default it checks membership in the local Administrators group (S-1-5-32-544), but you can point it at the Remote Desktop Users group with RDP, or supply any arbitrary local-group SID with --local-group. This makes it equally useful for auditing lateral movement paths — finding which systems a compromised account can reach as a local admin — and for checking RDP access during a red team engagement.
Flags
IP address of the domain controller to target.
Name of the domain to authenticate with (e.g.
contoso.com).Username used to connect to the domain controller.
Password associated with the specified username.
NTLM hashes for pass-the-hash authentication. Format:
[LMHASH:]NTHASH.Use Kerberos authentication. Reads credentials from the ccache file pointed to by
KRB5CCNAME. Requires pywerview[kerberos].Force a TLS (LDAPS) connection to the domain controller.
Logging verbosity sent to stderr. Choices:
CRITICAL (default), WARNING, DEBUG, ULTRA.Print results as JSON instead of the default human-readable format.
The domain username to check GPO-based access for. No wildcards. Specify either
--username or --groupname.The domain group name to check GPO-based access for. No wildcards. Specify either
--groupname or --username.Domain to query. Defaults to the domain inferred from the target DC or credentials.
The local group to check access against. Accepted values:
AdministratorsorS-1-5-32-544— local Administrators group (default)RDPorS-1-5-32-555— Remote Desktop Users group- Any
S-1-5-Xstyle SID string for other local groups