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-gpttmpl is a helper command that reads and parses a GptTmpl.inf file — the INI-format template used by the Security Settings extension of Group Policy — into structured output. These files live on the SYSVOL share under each GPO’s machine or user policy directory and define settings such as user right assignments (e.g. SeDebugPrivilege), restricted group memberships, system access controls, and registry values. Pointing this command at a UNC path on SYSVOL allows you to extract those settings programmatically without manually parsing the INF format. This command is a key building block used internally by get-domainpolicy and get-netgpogroup.
get-gpttmpl uses the ad_parser for its LDAP connection setup but the --gpt-tmpl-path argument points to a file path (typically a UNC path on SYSVOL, e.g. \\dc.contoso.com\SYSVOL\contoso.com\Policies\{GUID}\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf). The path is required and the command will not run without it.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. 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.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 path to the
GptTmpl.inf file to parse. This is typically a UNC path pointing to a file on the SYSVOL share (e.g. \\dc.contoso.com\SYSVOL\contoso.com\Policies\{GUID}\MACHINE\Microsoft\Windows NT\SecEdit\GptTmpl.inf).