Skip to main content

Python WMI Query Tool

Run a WMI (WQL) query on a remote host.

Installation

Using pip:

pip install pywmitool

Or, clone this project and use the setup

python setup.py install

Help

usage: pywmitool [-h] -a ADDRESS -u USERNAME [-p PASSWORD] [-d DOMAIN] -q WQL [-n NAMESPACE] [--debug] [--version]

optional arguments:
  -h, --help            show this help message and exit
  -a ADDRESS, --address ADDRESS
                        host name or address of remote host
  -u USERNAME, --username USERNAME
                        Username
  -p PASSWORD, --password PASSWORD
                        password (asked if not provided)
  -d DOMAIN, --domain DOMAIN
                        optional domain name
  -q WQL, --wql WQL     WQL string
  -n NAMESPACE, --namespace NAMESPACE
                        Namespace, defaults to `root/cimv2`
  --debug               Enable debug logging
  --version             Print version and exit

Example usage

pywmitool -a HOST_OR_IP -u USERNAME -q "SELECT Name FROM Win32_OperatingSystem"

Metadata

Release files for pywmitool 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pywmitool 1.0.1
File Size Uploaded Provenance Actions
pywmitool-1.0.1.tar.gz 4.2 kB Without provenance Details for pywmitool-1.0.1.tar.gz

Release files / pywmitool-1.0.1.tar.gz

Download URL pywmitool-1.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9df3e90b2fa4dd7e7e42bdbc0265417900d9028ef7a94de0cc3fd6bc6ca69fe9
BLAKE2b-256 checksum
How to use checksums
8c894184230ac0c748d961206fc346054bcb5fbafddb871ffa5b7f70951d8637
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for pywmitool 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page