Installation

Coordinates

The library is published on Maven Central[1] under:

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

Add it to your build

Maven

Maven

<dependency>
  <groupId>org.metricshub</groupId>
  <artifactId>winrm-java</artifactId>
  <version>2.0.00</version>
</dependency>
Gradle (Groovy)

Gradle (Groovy)

implementation 'org.metricshub:winrm-java:2.0.00'
Gradle (Kotlin)

Gradle (Kotlin)

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

For other build tools, the dependency information[2] 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[3] 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[4], then run it with Java:

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[5] manual.

Where to go next

install maven gradle dependency standalone cli jdk winrm wql wmi windows ntlm kerberos java remote management
Links:
  • [1] https://central.sonatype.com/artifact/org.metricshub/winrm-java
  • [2] dependency-info.html
  • [3] migrating-from-1x.html
  • [4] https://github.com/metricshub/winrm-java/releases/latest
  • [5] cli.html
  • [6] preparing-the-host.html
  • [7] wql.html
  • [8] commands.html
  • [9] authentication.html
Searching...
No results.