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-netcerttmpl searches the CN=Certificate Templates,CN=Public Key Services,CN=Services subtree of the configuration naming context for all pKICertificateTemplate objects. By default it returns each template’s name, enrollment flags (msPKI-Enrollment-Flag), extended key usages (pKIExtendedKeyUsage), and the set of principals granted enrollment rights derived from the template’s nTSecurityDescriptor (allowedprincipals). Use --resolve-sids to translate raw SIDs in the security descriptor into human-readable distinguished names, and --caname to restrict output to only the templates published by a specific Certificate Authority — pywerview will first look up the CA’s certificateTemplates attribute and then filter the full template list accordingly.
Flags
Global flags
IP address of the Domain Controller to target.
Name of the domain to authenticate with.
Username used to connect to the Domain Controller.
Password associated with the username.
NTLM hashes for pass-the-hash authentication. Format:
[LMHASH:]NTHASH. Use :$NTHASH to supply only the NT hash.Use Kerberos authentication. Credentials are sourced from the
KRB5CCNAME ccache file based on target parameters, falling back to the values provided on the command line.Force a TLS (LDAPS) connection to the Domain Controller.
Path to a certificate file for certificate-based authentication.
Path to the private key associated with the certificate.
Force SIMPLE LDAP authentication instead of the default SASL/NTLM bind.
STDERR logging verbosity. Choices:
CRITICAL (default), WARNING, DEBUG, ULTRA.Print results in JSON format instead of the default key-value output.
Command-specific flags
Target domain to query. Defaults to the domain of the authenticating user.
Resolve SIDs found in each template’s
nTSecurityDescriptor to human-readable names when populating allowedprincipals.Filter results to only the certificate templates published by the named CA. The CA’s
certificateTemplates attribute is fetched first and used to filter the full list. Must match the CA’s displayName exactly.Examples
Example output
--resolve-sids: