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-netpki searches the Active Directory configuration naming context for all pKIEnrollmentService objects — each one representing a Certificate Authority (CA) published by an Active Directory Certificate Services (ADCS) deployment. By default, the command returns the CA display name, DNS host name, the list of certificate templates it publishes (certificateTemplates), the enrollment server URIs (msPKI-Enrollment-Servers), and — after parsing the raw nTSecurityDescriptor — the set of principals who hold enrollment rights (allowedprincipals). Pass --full-data to retrieve every available attribute for deeper inspection. Use --resolve-sids to convert the raw SIDs in the security descriptor into human-readable names, and --caname to scope the search to a specific CA when the environment contains multiple issuing CAs.
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 the CA’s
nTSecurityDescriptor to human-readable names when populating allowedprincipals.Return all available LDAP attributes for each
pKIEnrollmentService object instead of the default subset (certificateTemplates, displayName, dNSHostName, name, msPKI-Enrollment-Servers, nTSecurityDescriptor).Filter by CA display name. Wildcards accepted (matched against the
displayName attribute).Examples
Example output
--resolve-sids: