簡體   English   中英

如何檢查是否在遠程計算機上啟用了Windows更新

[英]How to check if windows updates are enabled in a remote computer

我想對遠程計算機執行以下代碼,以便確定Windows更新是打開還是關閉:

WUApiLib.AutomaticUpdates auc = new WUApiLib.AutomaticUpdates();
bool active = auc.ServiceEnabled;

我該怎么做?

我發現了這個: http : //www.daveoncsharp.com/2009/10/enumerating-and-controlling-windows-services-with-csharp/

我認為這就是您要尋找的。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM