Registry / workflow / apache-airflow-providers-microsoft-winrm

apache-airflow-providers-microsoft-winrm

JSON →
library3.14.3pypypi✓ verified 84d ago

Apache Airflow provider to integrate with Microsoft WinRM for remote execution on Windows machines. Version 3.14.2 supports Airflow 2.19+ and Python >=3.10. Releases are published on PyPI with a cadence that aligns with Airflow provider updates.

pip install apache-airflow-providers-microsoft-winrm
INSTALL
IMPORT
SIG · APACHE-AIRFLOW-PRO
A
apache-airflow-providers-microsoft-winrm
workflowpythonv3.14.3
Install
23.7s avg
Import
6113ms
Disk
252MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v3.14.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 6.274s · 252.4MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 23.7s · import 5.952s · 250MB
252MB installed
● package 252MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

WinRMOperator
from airflow.providers.microsoft.winrm.operators.winrm import WinRMOperator
from airflow.providers.microsoft.winrm.operators.winrm_operator import WinRMOperator
Old import path from Airflow 1.x; current module is 'winrm' (not 'winrm_operator')
WinRMHook
from airflow.providers.microsoft.winrm.hooks.winrm import WinRMHook
from airflow.providers.microsoft.winrm.hooks import WinRMHook
Direct import from hooks package is misleading; must specify module 'winrm'

Minimal DAG that runs 'ipconfig /all' on a remote Windows machine via WinRM.

from datetime import datetime from airflow import DAG from airflow.providers.microsoft.winrm.operators.winrm import WinRMOperator with DAG(dag_id='winrm_test', start_date=datetime(2023,1,1), schedule_interval=None, catchup=False) as dag: task = WinRMOperator( task_id='run_ipconfig', winrm_host='192.168.1.100', winrm_login='Administrator', winrm_password='password', command='ipconfig /all' )
Debug
Known issues
gotchaWinRM connection times out or fails if the remote Windows machine does not have WinRM properly configured (e.g., listener enabled, firewall rules, HTTPS with valid certificate).
fix
Run 'winrm quickconfig' on the target Windows host and ensure port 5986 (HTTPS) or 5985 (HTTP) is open.
affects: all
deprecatedThe 'winrm_*' parameters (winrm_host, winrm_login, etc.) are the primary input; the older 'ssh_*' style parameters are not supported.
fix
Use documented WinRM parameters; do not mix SSH-style parameters.
affects: >=2.0.0
gotchaThe provider requires 'pywinrm' version compatible with the Kerberos or SSL authentication method you intend to use. Default HTTP may be rejected by modern Windows servers.
fix
Install with extras: pip install apache-airflow-providers-microsoft-winrm[kerberos] or configure HTTPS endpoint.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'airflow.providers.microsoft.winrm'
Provider package not installed or Airflow environment not restarted after installation.
fix
Run 'pip install apache-airflow-providers-microsoft-winrm' and restart the Airflow scheduler/webserver.
KeyError: 'winrm_host'
Missing required parameter in WinRMOperator or incorrect connection ID used.
fix
Ensure you pass both winrm_host and winrm_login when not using an Airflow connection URI.
Connection to (192.168.1.100) timed out. (connect timeout=60)
Remote WinRM service not reachable (firewall, wrong IP, WinRM not enabled).
fix
Verify remote host WinRM status with 'Test-WSMan -ComputerName 192.168.1.100' and check firewall rules.
Upgrade
Version history
3.14.3latest on PyPI · released Jun 7, 2026
Audit
Dependencies
apache-airflowrequiredCore dependency; provider requires Airflow >=2.19
pywinrmrequiredPython WinRM client library
Agent activity
59 hits · last 30 days
node
50
OpenAI (training)
2
Resources
apache-airflow-providers-microsoft-winrm — pip install apache-airflow-providers-microsoft-winrm · libregistry