Registry / devops / winrmcp

winrmcp

JSON →
library0.0.3pypypi✓ verified 81d ago

A Python package to execute commands on remote Windows machines and copy files to the remote machine using WinRM. Current version 0.0.3, requires Python >=3.6. Low release cadence, last updated in 2017.

pip install winrmcp
INSTALL
IMPORT
SIG · WINRMCP
W
winrmcp
devopspythonv0.0.3
Install
3.1s avg
Import
Disk
38MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.0.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 0.000s · 39.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.1s · import 0.000s · 40MB
38MB installed
● package 38MB
Code
Verified usage

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

Client
from winrmcp import Client
from winrmcp import winrmcp
Shell
from winrmcp import Shell
copy
from winrmcp import copy

Basic usage: create a client, run commands, and copy files.

from winrmcp import winrmcp # Connect to remote Windows host client = winrmcp( hostname='192.168.1.100', username='Administrator', password='password', transport='basic', server_cert_validation='ignore' ) # Run a command result = client.run_cmd('ipconfig', ['/all']) print(result.std_out, result.std_err, result.status_code) # Copy file to remote client.copy('local_file.txt', 'C:\\Remote\\path\\file.txt') # Copy file from remote client.copy('C:\\Remote\\file.txt', 'local_copy.txt', direction='get')
Debug
Known issues
breakingIncorrect import: the main class is `winrmcp` (lowercase), not `WinRMCP`. Importing `WinRMCP` will raise AttributeError.
fix
Use `from winrmcp import winrmcp`.
affects: all
gotchaThe `copy()` method's `direction` parameter defaults to 'put'. Use `direction='get'` to copy files from remote to local.
fix
Explicitly specify direction when copying from remote.
affects: all
gotchaThe library requires pywinrm and its dependencies. On non-Windows systems, you may need to install additional packages for Kerberos or NTLM authentication.
fix
Ensure pywinrm and all its extras are installed (e.g., `pip install pywinrm[all]`).
affects: all
Upgrade
Version history
0.0.3latest on PyPI · released Jun 11, 2020
Audit
Dependencies
pywinrmrequiredCore dependency for WinRM protocol implementation
Agent activity
5 hits · last 30 days
node
4
Resources
winrmcp — pip install winrmcp · libregistry