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-netgmsa queries Active Directory for all objects of class msDS-GroupManagedServiceAccount, returning account identity, object SID, description, enabled status, and — critically — the msDS-ManagedPassword blob when the LDAP connection is encrypted and the authenticating account appears in the PrincipalsAllowedToRetrieveManagedPassword attribute. Because the managed password is only served over an encrypted channel, the --tls flag is a hard requirement for password retrieval; without it pywerview silently removes msds-managedpassword from the attribute list and returns everything else. Use --resolve-sids to translate the raw SIDs stored in msDS-GroupMSAMembership into human-readable distinguished names, making it easier to understand which principals are authorised to read the password.
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. Required to retrieve
msDS-ManagedPassword.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
Filter results by object SID. Wildcards accepted.
Filter results by
samAccountName. Wildcards accepted (e.g. gMSA-*).Filter results by object name attribute. Wildcards accepted.
Target domain to query. Defaults to the domain of the authenticating user.
Additional ADS path to narrow the LDAP search base (e.g.
CN=Managed Service Accounts,DC=contoso,DC=com).Resolve SIDs found in
PrincipalsAllowedToRetrieveManagedPassword (msDS-GroupMSAMembership) to their distinguished names.