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-netou queries the domain controller via LDAP to enumerate all Organizational Unit objects in Active Directory. By default the command returns only the adspath of each OU, providing a compact overview of the domain’s container structure. Adding --full-data switches to the full LDAP attribute set, which is useful when you need to inspect GPO links, membership rules, or other OU-level properties. You can narrow results by OU name using wildcard patterns, or filter specifically to OUs linked to a particular GPO by supplying its GUID via --guid. This makes get-netou a natural companion to get-netgpo and find-gpocomputeradmin when mapping out how Group Policy applies across the environment.
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.
Path to a certificate file for certificate-based authentication.
Path to the private key file associated with
--cert.Force SIMPLE LDAP authentication instead of the default SASL/NTLM binding.
Logging verbosity sent to stderr. Choices:
CRITICAL (default), WARNING, DEBUG, ULTRA.Print results as JSON instead of the default human-readable format.
OU name to query. Wildcards are accepted (e.g.
Server*). Defaults to *, which returns all OUs.Only return OUs that have the specified GPO GUID present in their
gplink property. Useful for identifying which OUs a particular GPO is applied to.Domain to query. Defaults to the domain inferred from the credentials or the target DC.
Additional ADS path to restrict the LDAP search base (e.g.
OU=Servers,DC=contoso,DC=com).Return all LDAP attributes for each OU object. Without this flag only the
adspath is returned.