Skip to content

Wrapper around the WMI client. Linux and Windows WMI clients are supported. fixed chinese garbled problem

Notifications You must be signed in to change notification settings

rwson/wmi-client-chinese

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wmi-client-chinese

Wrapper around the WMI client. Linux and Windows WMI clients are supported. fixed chinese garbled problem.

Install

npm install wmi-client-chinese --save

Usage

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

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);
    
    /*
      [{
        Caption: 'Microsoft Windows 7 旗舰版',
        Version: '6.1.7601'
      }]
    */
});

基于wmi-client, 解决获取windows下获取信息中文乱码的问题

About

Wrapper around the WMI client. Linux and Windows WMI clients are supported. fixed chinese garbled problem

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published