https://github.com/cesbit/pywmitool
Python WMI Query Tool
https://github.com/cesbit/pywmitool
Last synced: about 2 months ago
JSON representation
Python WMI Query Tool
- Host: GitHub
- URL: https://github.com/cesbit/pywmitool
- Owner: cesbit
- License: mit
- Created: 2022-03-04T11:38:14.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-06T07:08:05.000Z (11 months ago)
- Last Synced: 2025-09-29T09:02:02.748Z (6 months ago)
- Language: Python
- Size: 12.7 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python WMI Query Tool
Run a WMI (WQL) query on a remote host.
## Installation
Using pip:
```shell
pip install pywmitool
```
Or, clone this project and use the setup
```shell
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
```shell
pywmitool -a HOST_OR_IP -u USERNAME -q "SELECT Name FROM Win32_OperatingSystem"
```