Metadata-Version: 2.1
Name: pywmitool
Version: 0.1.1
Summary: WMI query tool
Home-page: https://github.com/cesbit/pywmitool
Author: Jeroen van der Heijden
Author-email: jeroen@cesbit.com
License: MIT
Download-URL: https://github.com/cesbit/pywmitool/tarball/v0.1.1
Keywords: pywmitool
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Database :: Front-Ends 
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Description-Content-Type: text/markdown
License-File: LICENSE

# 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"
```



