RSS

PS获取本机安装的补丁

24 Nov

Get-WmiObject -Query ‘select * from Win32_QuickFixEngineering’ | select hotfixid

[2010-03-02 update]Get-WmiObject -Query ‘select * from Win32_QuickFixEngineering’ | ? {$_.hotfixid -like "*KB*"} | select hotfixid

查询一个特定的hotfix

Get-WmiObject -Query ‘select * from Win32_QuickFixEngineering’ | ? {$_.hotfixid -eq "KB950224-v3"}

[update]

PS2.0自带get-hotfix了,更强大,更好用

Advertisements
 
1 Comment

Posted by on November 24, 2009 in Powershell

 

One response to “PS获取本机安装的补丁

  1. Huajun

    November 23, 2009 at 11:38

    有现成的 Get-HotFix

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: