WMI query tool
Project description
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"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pywmitool-1.0.1.tar.gz
(4.2 kB
view details)
File details
Details for the file pywmitool-1.0.1.tar.gz.
File metadata
- Download URL: pywmitool-1.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9df3e90b2fa4dd7e7e42bdbc0265417900d9028ef7a94de0cc3fd6bc6ca69fe9
|
|
| MD5 |
eaeac0f227d3a74e61e45f5c0acb601e
|
|
| BLAKE2b-256 |
8c894184230ac0c748d961206fc346054bcb5fbafddb871ffa5b7f70951d8637
|