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
pywmitool-1.0.1.tar.gz 4.2 kB Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

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