9

There used to be a command line tool called QFECheck in Windows Server 2000 that would list them out. Is this the preferred method on windows server 2003/2008?

I know they're listed in Add/Remove programs, but it's hard to capture them for an audit this way.

Can i do this without having to install an add-on executable?

Nick Kavadias
  • 10,796
  • 7
  • 37
  • 47

4 Answers4

12

The following command(s) work in both the 'regular' command prompt and PowerShell, also for both Windows Server 2003 and Windows Server 2008:

wmic qfe get Hotfixid

to find if a specific update was installed:

wmic qfe | find "123456"

It however does not provide any office updates (unfortunately), thought it's relatively easy now to just go to 'installed updates' and do a search for it... same as Windows updates, but the question specified it needed to be done from a command prompt.

Powershell only command:

Get-Hotfix -id kb123456
Nick Kavadias
  • 10,796
  • 7
  • 37
  • 47
l0c0b0x
  • 11,867
  • 7
  • 47
  • 76
  • +1 Can't believe I've never seen that tool.... – squillman May 20 '10 at 21:21
  • I know the question is about Server but just to add - It seems to work on Win7 but on XP it returned a whole lot of unrelated garbage, such as about 50 repetitions of "File 1" and random text such as "NLSDownlevelMapping". – John Gardeniers May 20 '10 at 21:56
  • I just stumbled upon it by trying to figure out more about 'quick fix engineering', after finding this command online: Get-WmiObject -query 'select * from win32_quickfixengineering' | foreach {$_.hotfixid} – l0c0b0x May 20 '10 at 21:59
  • Actually, I did notice the 'file 1' junk on win 2003... but the list of KBs was still accurate. – l0c0b0x May 20 '10 at 22:03
  • so awesome i changed you to the correct answer! – Nick Kavadias May 21 '10 at 02:46
  • @Nick: Yeah, I don't blame you on that one :) – squillman May 21 '10 at 12:22
3

You can do it with Powershell:

Get-ChildItem -Path “HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix”
squillman
  • 37,883
  • 12
  • 92
  • 146
2

PowerShell now includes the Get-HotFix command which is far easier to remember.

MikeyB
  • 39,291
  • 10
  • 105
  • 189
-1

they are also listed under the windows directory.

Nasa
  • 316
  • 1
  • 7