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-netsite queries the domain controller via LDAP to enumerate Active Directory Site objects, which represent the physical or logical network topology groupings used by AD to control replication and client authentication. By default the command returns only the name of each site, giving you a quick overview of how the domain’s geography is partitioned. Supply --full-data to retrieve the full set of LDAP attributes including replication schedules and GPO links. The --guid filter lets you find sites linked to a specific Group Policy Object, making this command useful for understanding how policy rolls out across different physical locations. Wildcard patterns in --sitename allow flexible fuzzy matching.
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.
Site name to query. Wildcards are accepted (e.g.
London*). When omitted, all sites are returned.Only return sites that have the specified GPO GUID present in their
gplink property.Domain to query. Defaults to the domain inferred from the credentials or the target DC.
Additional ADS path to restrict the LDAP search base.
Return all LDAP attributes for each site object. Without this flag only the site name is returned.
Examples
AD site objects are stored under
CN=Sites,CN=Configuration,DC=contoso,DC=com in the directory. The --ads-path flag can be used to restrict queries to a specific configuration partition path if needed.