Best way of detecting if Windows has Windows Updates ready to download/install?

后端 未结 6 1964
鱼传尺愫
鱼传尺愫 2021-01-14 19:00

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

6条回答
  •  無奈伤痛
    2021-01-14 19:54

    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 "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.

    Thanks for all the ideas.

提交回复
热议问题