> ## Documentation Index
> Fetch the complete documentation index at: https://mw-docs.middleware.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Windows

> Windows Infra Agent - Setup & Installation Docs | Middleware

This guide walks you through installing the Infrastructure Agent (Infra Agent) on a Microsoft Windows machine. These instructions can also be found on the Installation page in your [Middleware Account](https://app.middleware.io/installation#infrastructures/windows).

# Prerequisites

<Steps>
  <Step title="Windows Version">
    Microsoft `Windows v10` or above
  </Step>

  <Step title="Windows Server">
    For Microsoft Windows Server instances, `Windows Server 2016` and above
  </Step>

  <Step title="Windows Processor">
    Microsoft `Windows 64-bit`
  </Step>
</Steps>

# Install

### Step 1: Download Infra Agent Installer

Log in to Middleware, navigate to the Installation Page in the bottom left corner and select Windows from the Infrastructure section

Download the Infra Agent [Installer](https://github.com/middleware-labs/mw-agent/releases)

<img src="https://mintcdn.com/middlewareio/jleIVd7TDhBlp-my/images/agent-installation/k1.png?fit=max&auto=format&n=jleIVd7TDhBlp-my&q=85&s=847e7ac9506bdfc9255da5de4eb79d6f" alt="&#x22;Agent Installation&#x22;" width="1999" height="1373" data-path="images/agent-installation/k1.png" />

### Step 2: Run & Complete Install Wizard

Right-click the Installer, select `Run as administrator`, and complete the Install Wizard.

<Note> Ensure you have your MW API Key & MW Target URL. Access them in your [MW Account](https://app.middleware.io/installation#infrastructures/windows) </Note>

<img src="https://mintcdn.com/middlewareio/jleIVd7TDhBlp-my/images/agent-installation/windows.png?fit=max&auto=format&n=jleIVd7TDhBlp-my&q=85&s=e6e8cfeece3423338b44cefdff5c9fe2" alt="&#x22;Windows Install CredentialInterface&#x22;" width="495" height="381" data-path="images/agent-installation/windows.png" />

### Step 3: Verify Installation

Verify the Infra Agent has been successfully installed with one of the following methods:

#### Windows Service Manager

Search for the `Middleware Agent` in your Windows Service Manager.

The `Middleware Agent` should be in `Running` status.

<img src="https://mintcdn.com/middlewareio/jleIVd7TDhBlp-my/images/agent-installation/windows_verify.png?fit=max&auto=format&n=jleIVd7TDhBlp-my&q=85&s=289d261f1580822cbb52e87321cbe1ee" alt="&#x22;Windows Service Manager&#x22;" width="846" height="554" data-path="images/agent-installation/windows_verify.png" />

#### Powershell

Verify the Infra Agent has been successfully installed with the following command:

```shell Shell theme={null}
Get-Service -Name mw-windows-agent
```

The `mw-windows-agent` should be in `Running` status

<img src="https://mintcdn.com/middlewareio/jleIVd7TDhBlp-my/images/agent-installation/windows_correct.jpg?fit=max&auto=format&n=jleIVd7TDhBlp-my&q=85&s=fac885026f3932b0f47bd693f70f70e7" alt="&#x22;Verify Windows Present Code&#x22;" width="404" height="85" data-path="images/agent-installation/windows_correct.jpg" />

# Troubleshooting

<Warning>  Run only one Infra Agent per host. Multiple agents will cause unexpected behavior. </Warning>

Once the Infra Agent is installed, metrics should begin appearing in your Middleware Account within a few minutes. If metrics do not appear, ensure that the machine has access to the internet, either directly or through a proxy, and that only one MW Agent is running per server instance.

# Uninstall

To uninstall the Infra Agent on a Windows machine, follow these steps.

1. Access Settings in the Windows Launcher and go to Apps section.
2. Under Apps & Features, locate Infra Agent and Click on Uninstall.
3. Follow the prompts to uninstall Infra Agent.

<Note> Need assistance or want to learn more about Middleware? Contact us at support\[at]middleware.io. </Note>
