Wmic.js - WMIC 的 Node.js 接口


MIT
跨平台
JavaScript

软件简介

Wmic.js 是 Windows Management Instrumentation CLI(WMIC) 的 Node.js 接口。

使用方法:

1. 启动 WMIC:

sc start winmgmt // Start WMI Service
sc query winmgmt // Check if the service is running

2. 使用 Wmic.js:

wmic().alias('NICConfig').where('Index', 1);
// Equals to
wmic().alias('NICConfig').where('Index', '=', 1);
// You can also use other operators
wmic().alias('NICConfig').where('Description', 'LIKE', '%WAN%');
// Use orWhere to give an alternative condition
wmic().alias('NICConfig').where('Description', 'LIKE', '%WAN%').orWhere('Description', 'LIKE', '%LAN%');