Wmic.jsWMIC 的 Node.js 接口

联合创作 · 2023-09-23 16:01

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%');
浏览 4
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报