检测 Windows 是否已准备好下载/安装 Windows 更新的最佳方法? [英] Best way of detecting if Windows has Windows Updates ready to download/install?

查看:22
本文介绍了检测 Windows 是否已准备好下载/安装 Windows 更新的最佳方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对 Windows 2000/XP 特别感兴趣,但 Vista/7 也会很有趣(如果不同的话).

I'm specifically interested in Windows 2000/XP, but Vista/7 would be interesting too (if different).

我正在考虑每天安排批处理文件或等效文件的任务.

I was thinking along the lines of task scheduling a batch file or equivalent on a daily basis.

抱歉,我应该提供更多信息.该问题与我手动应用更新的 10 台机器有关.我不想以编程方式安装更新,但只需使用批处理或脚本找出是否有准备下载/安装的更新(即系统托盘中的更新盾牌图标表示这一点).谢谢.

Sorry, I should have provided more info. The question pertains to 10 machines which I manually apply updates. I don't want to install the updates programatically, but just find out if there are updates ready to download/install (i.e. the update shield icon in the system tray is indicating this) using a batch or script. Thanks.

推荐答案

最后Windows SUS 不是一个选项,所以我在批处理文件中使用以下内容与 ActiveState ActivePerl(推荐):

In the end, Windows SUS wasn't an option, so I'm using the following in a batch file conjunction with ActiveState ActivePerl (recommended):

perl -nle "打印 $_ 如果检测到 m/更新/i" <c:\Windows\WindowsUpdate.log

perl -nle "print $_ if m/updates detected/i" < c:\Windows\WindowsUpdate.log

这可能是粗糙或肮脏的,将来可能会坏掉,但它目前可以满足我的需求.

This might be crude or dirty, and might break in future, but it currently does what I need.

感谢所有的想法.

这篇关于检测 Windows 是否已准备好下载/安装 Windows 更新的最佳方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆