Skip to main content

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-0.1.3.tar.gz (4.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page