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-userevent executes a SELECT * FROM Win32_NTLogEvent WMI query against a target Windows host to retrieve Security event log entries related to user authentication activity. By default it collects both logon events (Event ID 4624 / Type 2 interactive logon) and Kerberos TGT request events (Event ID 4768), scoped to events from the past five days. Adjusting --date-start extends or narrows that window. This command is used internally by invoke-eventhunter to identify which users have recently authenticated to a set of hosts, enabling you to infer where high-value accounts such as domain administrators may be active.
Flags
IP address or hostname of the target Windows host to query for user events.
Name of the domain to authenticate with. Can be omitted when using local credentials.
Username for authentication. Accepts both domain accounts (
DOMAIN\user) and local accounts.Password associated with the specified username.
NTLM hashes for pass-the-hash authentication. Format:
[LMHASH:]NTHASH. The LM portion can be omitted or replaced with the empty LM hash.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.Logging verbosity sent to stderr. Choices:
CRITICAL (default), WARNING, DEBUG, ULTRA.Print results as JSON instead of the default human-readable format.
Type(s) of events to search for. Accepted values:
logon (interactive logon events) and tgt (Kerberos TGT request events). Pass one or both values. Defaults to returning both event types.Filter out events older than this many days. For example,
--date-start 7 returns events from the last week. Defaults to 5.Examples
get-userevent is used by invoke-eventhunter under the hood. For large-scale hunts across multiple hosts, prefer invoke-eventhunter which parallelises the WMI queries and correlates results against domain user lists.