Wmic.js是WidowsMaagemetIstrumetatioCLI(WMIC)的Node.js接口。
使用方法:
1.启动WMIC:
sc start wimgmt // Start WMI Servicesc query wimgmt // Check if the service is ruig2.使用Wmic.js:
wmic().alias('NICCofig').where('Idex', 1);// Equals towmic().alias('NICCofig').where('Idex', '=', 1);// You ca also use other operatorswmic().alias('NICCofig').where('Descriptio', 'LIKE', '%WAN%');// Use orWhere to give a alterative coditiowmic().alias('NICCofig').where('Descriptio', 'LIKE', '%WAN%').orWhere('Descriptio', 'LIKE', '%LAN%');
评论