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-netgpogroup enumerates every Group Policy Object in the domain and inspects two policy mechanisms that control local group membership: the Restricted Groups section inside GptTmpl.inf (enforced via the [Group Membership] ini block), and Groups.xml files stored under the GPO’s MACHINE\Preferences\Groups\ SYSVOL path. Both mechanisms can silently add users or groups to local groups such as Administrators or Remote Desktop Users on every machine the GPO applies to. The command returns structured output listing the GPO name, the target local group SID, and the members being pushed — exactly the data needed to map GPO-enforced privilege grants across the domain. Use --resolve-sids to translate raw SIDs into readable DOMAIN\account names before further analysis.
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.
GPO name (GUID form) to filter on. Wildcards accepted. Defaults to
* to process all GPOs.GPO display name to filter on. Wildcards accepted. Takes precedence over
--gponame when set.Domain to query. Defaults to the domain inferred from the target DC or credentials.
Additional ADS path to restrict the LDAP search base when enumerating GPO objects.
Resolve the SIDs of both the member accounts and the target local groups into human-readable
DOMAIN\account names by querying the DC. Without this flag, raw SIDs are returned.