小编Woo*_*g79的帖子

如何发现 Windows 更新是可选、推荐还是重要

我目前正在编写一种自动化程序,其中包括搜索 Windows 更新。它可以很好地搜索和检索更新,但我无法深入了解更新的优先级。我想要类似的输出:

总更新:25 重要:12 可选:13

.IsMandatory 字段仅在更新专门针对 WUA 本身时使用,因此重要的更新不必用 .IsMandatory 标记。

搜索用水户协会的代码片段如下:

Dim updateSession  ' Object to hold our MS Update Session
Dim updateSearcher ' Object to perform our MS Win Update Search
Dim results        ' Object to hold our MS Win Update Search Results
Dim stopWatch As New Stopwatch()
stopWatch.Start()

outputWriter.WriteLine("----WINDOWS UPDATES-----@ " & Now, False)
outputWriter.WriteLine("  -We are beginning our update search. Please note, this may take a few minutes." & _
                       "  On Windows Server 2003 …
Run Code Online (Sandbox Code Playgroud)

vb.net windows windows-update

5
推荐指数
1
解决办法
4162
查看次数

标签 统计

vb.net ×1

windows ×1

windows-update ×1