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-netgpo queries the domain controller via LDAP to enumerate all Group Policy Objects in the domain. Every GPO is represented as a groupPolicyContainer object in Active Directory, carrying attributes such as its GUID-based name, human-readable display name, and the UNC path (gPCFileSysPath) pointing to the SYSVOL share where the actual policy files live. By default the command returns every GPO, but you can narrow results by GPO name (the {GUID} form) or by display name, both of which accept wildcard patterns. This output feeds directly into get-netgpogroup, find-gpocomputeradmin, and find-gpolocation to trace how policy settings translate into administrative access across the domain.
Flags
IP address of the domain controller to target.
Name of the domain to authenticate with (e.g.
contoso.com). Required for domain LDAP queries.Username used to connect to the domain controller.
Password associated with the specified username.
NTLM hashes for pass-the-hash authentication. Format:
[LMHASH:]NTHASH. The LM portion can be omitted or zeroed out.Use Kerberos authentication. Reads credentials from the ccache file pointed to by
KRB5CCNAME. Falls back to the provided username and password if no valid ticket is found. Requires pywerview[kerberos].Force a TLS (LDAPS) connection to the domain controller.
Path to a certificate file for SChannel (certificate-based) authentication.
Path to the private key file associated with
--cert.Force SIMPLE LDAP authentication instead of the default SASL/NTLM binding.
Logging verbosity sent to stderr. Choices:
CRITICAL (default), WARNING, DEBUG, ULTRA.Print results as JSON instead of the default human-readable format.
GPO name to query for. This is the GUID-style name (e.g.
{31B2F340-016D-11D2-945F-00C04FB984F9}). Wildcards are accepted. Defaults to *, which returns all GPOs.Display name to filter by (e.g.
Default Domain Policy). Wildcards are accepted. When specified, this takes precedence over --gponame.Domain to query. Defaults to the domain inferred from the credentials or the target DC.
Additional ADS path to restrict the LDAP search base (e.g.
OU=Servers,DC=contoso,DC=com).