![](/img/trans.png)
[英]Is possible to have really real time updates on map via Google API using Node.js
[英]Is it possible to get a list of installed Windows Updates using node.js?
我正在JavaScript / Node.js中的一個項目上工作,我想獲取所有已安裝的Windows更新的列表,類似於使用C#WUAPI 2.0類型庫。
我嘗試使用WMI調用(win32_QuickFixEngineering類),但是在Vista之后,它在所有Windows版本上都返回非常不完整的列表。
有誰知道我是否可以獲得包括知識庫更新的更新列表? 我真的想避免創建ac#.exe,而不必將數據序列化為json並將其從c#應用程序發送到我的node.js應用程序。
就這么簡單:
const childProcess = require('child_process');
let result = childProcess.execSync('wmic qfe list').toString();
console.log(result);
當然,您應該使用try catch並解析結果字符串以獲取更多有用的數據:)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.