# User Sessions

Users that are currently logged on to this same machine may be good targets to attack. If they are more privileged then our current user in the domain, they may be a good candidate for lateral movement to other machines. The **Domain Reconnaissance** chapter will show methods for performing this type of enumeration.

The `net logons` command will list the logon sessions on this machine.

```
beacon> net logons

Logged on users at \\localhost:

DEV\bfarmer
DEV\jking
DEV\WKSTN-2$
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yamortsa.gitbook.io/rto/host-reconnaissance/user-sessions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
