Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

4 Answers 4

up vote 8 down vote accepted

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.

share|improve this answer
    
+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 2:46

You can do it with Powershell:

Get-ChildItem -Path “HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix”
share|improve this answer
    
I think your using powershell here to rub it in a bit, but that registry key is golden –  Nick Kavadias Oct 5 '09 at 16:35
    
Nah, not rubbing it in. But, yeah, you admittedly could use any command-line reg tool. –  squillman Oct 5 '09 at 16:42
    
this only works on 2003... I just posted a command that works for both server 2003 and 2008. –  l0c0b0x May 20 '10 at 20:57

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

share|improve this answer

they are also listed under the windows directory.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.