GithubHelp home page GithubHelp logo

imvishalpatel / py-wmi-client Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dlundgren/py-wmi-client

0.0 0.0 0.0 7 KB

Python WMI Client implementation

License: MIT License

Python 100.00%

py-wmi-client's Introduction

Python WMI Client

Current version on PyPI Downloads/month on PyPI

Communicate with Windows machines via WMI from *nix machines.

Motivation

The original wmic was/is a command-line utility originally built as part of Samba. It has become difficult to find the correct requirements for building it manually, and there were to my knowledge no available packages for the differing platforms that I use.

While the current implementation aims to be compatible with check_wmi_plus.pl, getting feature parity with the original/compiled version of wmic is not out of the question.

Installation

To install simply run the following:

$ pip install wmic
Requirements
  • impacket >= 0.9.13
  • natsort >= 3

Usage

The simplest way to run it is similar to the following

wmic -A /etc/nagios3/wmic_auth.ini //ServerName "SELECT * FROM Win32_PerfFormattedData_PerfOS_Memory"

Available arguments
  • -A, --authentication-file : INI style file that
    • domain : optional, default: WORKGROUP
    • username : required
    • password : required
  • -U,--user : format [DOMAIN\]USERNAME[%PASSWORD]
  • --delimiter : how to separate the colums, default: |
  • --namespace : namespace, default: //./root/cimv2
Notes
  • If you do not supply a domain, then the script defaults to WORKGROUP
  • You must use either a file or user argument

License

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.