Wrapper around the WMI client. Linux and Windows WMI clients are supported.
npm install wmi-client
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'
}]
*/
});
- Simple mode (like WMIC on Windows)