Freigeben über


[Windows Vista] 特定の更新プログラムが適用済みかどうかを調べるには

Windows ???????????KBxxxxxx ?????????????????????????????????????????????????????

image

?????????? [????????] ?? [????????????????] ????????????????????????????????????????????????????????????????????????????

????????????????????????????????????????????????

 image

KB958623 ?????????????? KB958.. ??? *958.. ?????????????????????????????????958.. ???????????????????????

?????? Windows PowerShell ??????????????????

PS> $wu = new-object -com Microsoft.Update.Searcher
PS> $updates = $wu.Search("Type='Software'")
PS> $updates | Where-Object {$_.title -like "*958*"} |
>> Format-Table title, MsrcSeverity

title MsrcSeverity
----- ------------
Windows Vista ???????????... Important
Microsoft Office Excel 2007 ????... Important
Microsoft Office Outlook 2007 ???...
2007 Microsoft Office system ???... Important
Windows Vista ???????????... Critical
Windows Vista ???????????... Important

Microsoft Update ??????????????????Microsoft.Update.Searcher ? COM ????????????????Microsoft Update ???????????????? Microsoft.Update.AutoUpdate??????? Microsoft.Update.Session ???????????????????????? MSDN ?????? Scripting Guy ?????????????

Windows Update Agent API (Windows) (??)
https://msdn.microsoft.com/en-us/library/aa387099.aspx

Hey, Scripting Guy!
?????????????????????? ????
????????????
https://www.microsoft.com/japan/technet/scriptcenter/
resources/qanda/sept04/hey0929.mspx

Microsoft Update ??????????????????????????????????????????????????? WMI ? Win32_QuickFixEngineering ??????????????????

PS> Get-WmiObject Win32_QuickFixEngineering |
>> Where-Object { $_.HotFixID -like "*928*"} |
>> Format-Table HotFixID

HotFixID
--------
928439

KB928439 ? Windows PowerShell ???Win32_QuickFixEngineering ??????????????????????

Win32_QuickFixEngineering Class (??)
https://msdn.microsoft.com/en-us/library/aa394391.aspx