wmi-client
Wrapper around the WMI client. Linux and Windows WMI clients are supported.
Wmic binaries for Ubuntu and CentOS are included.
Install
npm install wmi-client
Usage
var WmiClient = ;
Two ways to create a new client instance:
// WINDOWS ONLY!var wmi = ;
var wmi = username: 'LOGIN' password: 'PASSWORD' host: 'IP-ADDRESS' ntlm2: true // only for linux // OPTIONAL // --------------------------------------------------------------- // The client is spawned with this location as cwd. // NOTE that csv.xsl (see lib/csv.xsl) has to exist in // lib/csv.xsl relative to that location! cwd: 'path to target location';
Query the client:
wmi;