---
description: Add the WinRM Java Client to your build, or run the standalone command-line jar.
date_published: 2026-07-29
date_modified: 2026-07-29
canonical_url: https://metricshub.org/winrm-java/installation.html
---

# Installation

On this Page

- [Coordinates](#coordinates)
- [Add it to your build](#add-it-to-your-build)
- [Supported JDKs](#supported-jdks)
- [Runtime dependencies](#runtime-dependencies)
- [Standalone command-line jar](#standalone-command-line-jar)
- [Where to go next](#where-to-go-next)

## Coordinates

The library is published on [Maven Central](https://central.sonatype.com/artifact/org.metricshub/winrm-java) under:

| Field | Value |
| --- | --- |
| `groupId` | `org.metricshub` |
| `artifactId` | `winrm-java` |
| `version` | `2.0.00` |

## Add it to your build

#### Maven

```xml
<dependency>
  <groupId>org.metricshub</groupId>
  <artifactId>winrm-java</artifactId>
  <version>2.0.00</version>
</dependency>
```

#### Gradle (Groovy)

```groovy
implementation 'org.metricshub:winrm-java:2.0.00'
```

#### Gradle (Kotlin)

```kotlin
implementation("org.metricshub:winrm-java:2.0.00")
```

For other build tools, the [dependency information](dependency-info.html) report lists the snippet for Ivy, SBT, Leiningen, and others.

## Supported JDKs

The library targets **Java 11** and runs on any later JDK.

## Runtime dependencies

Since 2.0.0 the client has **zero runtime dependencies**. There is no longer an Apache CXF / JAX-WS / JAXB stack, no BouncyCastle, and no SMB stack (`smbj`) on the classpath — the client speaks WS-Management over the JDK's own HTTP and XML APIs, and copies files through the WinRM channel itself. If you upgraded from 1.x, see [Migrating from 1.x](migrating-from-1x.html) for the details and the behavior changes this implies.

## Standalone command-line jar

Every release also ships a self-contained executable jar that bundles the client and a small CLI. Download `winrm-java-2.0.00-standalone.jar` from the [latest release](https://github.com/metricshub/winrm-java/releases/latest), then run it with Java:

```bash
java -jar winrm-java-2.0.00-standalone.jar --help
```

Subcommands, options, password handling, streaming behavior, and exit codes are documented in the [Command-Line Client](cli.html) manual.

## Where to go next

- [Preparing the Windows Host](preparing-the-host.html) — enabling WinRM and the required privileges
- [WQL Queries](wql.html)
- [Remote Commands](commands.html)
- [Command-Line Client](cli.html)
- [Authentication](authentication.html)
