# Send Requests to a Windows Endpoint

> Ask the CapaOne Agent on a Windows endpoint to rescan its inventory, upload its logs, or restart, and follow the results in the command log.

Source: https://docs.capaone.com/capaone/windows-management/send-requests-to-a-windows-endpoint/  
Product: CapaOne — a separate CapaSystems product; do not apply this page to any other.

From an endpoint's page you can send requests to the CapaOne Agent, for example to collect a fresh
inventory or upload the agent logs for troubleshooting. This page describes the requests and where
to find their results.

:::note[Before you start]
Open the endpoint's page: go to **Windows → Endpoints → List** and click the endpoint's name.
If the endpoint is offline, requests are queued and run when the endpoint is online again.
:::

## Send a request

1. Open the actions menu (⋮) in the endpoint header.
2. Point to **Request** and select a request.

   ![Windows endpoint actions menu with the Request submenu open](/attachments/capaone/send-requests-to-a-windows-endpoint--request-menu.png)

| Request | What it does |
|---|---|
| **Scan software** | Collects a fresh software inventory. |
| **Scan hardware** | Collects a fresh hardware inventory. |
| **Scan drivers** | Collects a fresh driver inventory. |
| **Scan security** | Collects the inventory that the security checks are based on. |
| **Get logs** | Uploads the agent's log files to CapaOne. See [Collect the agent logs](#collect-the-agent-logs). |
| **Restart agent** | Restarts the CapaOne Agent service on the endpoint. |
| **Reconfigure agent** | Makes the agent fetch its latest configuration from CapaOne and apply it. |

You don't normally need **Reconfigure agent**. CapaOne sends the endpoint its new configuration
automatically when you change a configuration. Use the request when you want the endpoint to pick
up a change right away.

The same menu also has these actions:

- **View requests** — see [View requests and their results](#view-requests-and-their-results).
- **Manage tags** — see [Tag Windows Endpoints](/capaone/windows-management/tag-windows-endpoints/).
- **Provision → Start PXE (30 mins)** — requires Provision Manager. See
  [Provision Points](/capaone/provision-manager/provision-points/).
- **Delete** — removes an offline endpoint from CapaOne. See
  [Delete endpoints](/capaone/windows-management/windows-endpoint-list/#delete-endpoints).

## View requests and their results

Select **View requests** in the actions menu. The **Commands for** dialog lists the requests sent
to the endpoint.

| Column | What it shows |
|---|---|
| **Date** | When the request was created. |
| **Command name** | The request that was sent. |
| **Result** | Whether the request has been sent, and its outcome, such as **Completed**, **Processing**, or **Failed with exit code** followed by the code. |

Select **Hide sent commands** to show only the requests that are still waiting. Click **Details**
to see the full details of a request.

## Collect the agent logs

When you contact support about an agent problem, you're often asked for the agent logs.

1. In the actions menu, select **Request → Get logs**.
2. Wait until the request has completed. If the endpoint is offline, the request runs when it's
   online again.
3. In the actions menu, select **View requests**.
4. On the row for the log upload, click **Logs**.

A log viewer opens. Click **Download** to save one log file, or **Download all** to save all
log files as one `.zip` file.

The **Logs** button also appears for installations and uninstallations of applications, so you
can read the log of a single deployment the same way.

## Follow the command log

The command log shows what the agent reports while it works on the endpoint. Click
**Show command log** in the endpoint header to open it. A badge on the button counts new entries
while the log is closed.

- Use **Search command log** to highlight matching lines.
- Click **Copy** on an entry to copy it.
- Turn on **Debug** to make the agent log in more detail for 5 minutes. Debug logging is only
  available while the endpoint is online.

When you select **Trace in command log** for an application on the endpoint's **Applications**
tab, the command log shows only that operation. Click **Stop trace** to return to the full log.

## Related

- [Windows Endpoint Details](/capaone/windows-management/windows-endpoint-details/)
- [CapaOne Agent Installation](/capaone/troubleshooting/capaone-agent-installation/)
