Skip to content

Wrapper around the WMI client. Linux and Windows WMI clients are supported.

License

Notifications You must be signed in to change notification settings

speartail/wmi-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wmi-client

Wrapper around the WMI client. Linux and Windows WMI clients are supported.

Install

npm install wmi-client

Usage

var WmiClient = require('wmi-client');

var wmi = new WmiClient({
    username: 'LOGIN',
    password: 'PASSWORD',
    host: 'IP-ADDRESS',
    ntlm2: true // only for linux
});

wmi.query('SELECT Caption,Version FROM Win32_OperatingSystem', function (err, result) {
    console.log(result);
    
    /*
    RESULT:
      [{
        Caption: 'Microsoft Windows Server 2008 R2 Enterprise',
        Version: '6.1.7601'
      }]
    */
});

TODO

  • Simple mode (like WMIC on Windows)

About

Wrapper around the WMI client. Linux and Windows WMI clients are supported.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 76.1%
  • XSLT 23.9%