查Windows更新範例:
wmic qfe where (Installedon like "%2013") get installedon,hotfixid |sort /+10 /r
Powershll:
get-hotfix | select hotfixid, installedon | sort-object installedon | select -last 1
=====
查病毒碼最後更新範例:
reg query HKLM\SOFTWARE\Wow6432Node\TrendMicro\PC-cillinNTCorp\CurrentVersion\Misc. /v PatternDate
Windows update可以,但是病毒碼看你是用趨勢的,他可以設定每日排程更新阿
微軟更新WMI可參考以下:
http://social.msdn.microsoft.com/Forums/en-US/28116c6f-fed6-4bc3-8210-64c6d03b8b1f/wmi-query-to-pull-all-kb-installed-updates-on-windows?forum=csharplanguage
另外可建議用微軟的WSUS來管控CLIENT的更新