https://github.com/rwson/wmi-client-chinese
Wrapper around the WMI client. Linux and Windows WMI clients are supported. fixed chinese garbled problem
https://github.com/rwson/wmi-client-chinese
system-info wmi
Last synced: 3 months ago
JSON representation
Wrapper around the WMI client. Linux and Windows WMI clients are supported. fixed chinese garbled problem
- Host: GitHub
- URL: https://github.com/rwson/wmi-client-chinese
- Owner: rwson
- Created: 2018-05-22T07:08:11.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-22T07:26:37.000Z (about 8 years ago)
- Last Synced: 2025-03-11T03:41:51.683Z (over 1 year ago)
- Topics: system-info, wmi
- Language: JavaScript
- Size: 4.94 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wmi-client-chinese
Wrapper around the WMI client. Linux and Windows WMI clients are supported. fixed chinese garbled problem.
### Install
```bash
npm install wmi-client-chinese --save
```
### Usage
```javascript
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](https://github.com/R-Vision/wmi-client), 解决获取windows下获取信息中文乱码的问题