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

Is there a way to find if multiple MS updates are installed using WMIC command:

wmic qfe | find ?

Thanks

share|improve this question
    
uh yes using pretty much the command you already provided. What are you specifically trying to do? –  August Jul 9 '12 at 19:48
    
yes but i want to query about multiple update at once –  Eddy Jul 9 '12 at 20:05

1 Answer 1

up vote 0 down vote accepted

Similar to what you have in your question, you can do this:

wmic qfe | findstr /G:C:\Temp\KBs.txt

where C:\Temp\KBs.txt is the full path to a text file of the updates you are looking for. You can list the KB #s on separate lines in the file to search for multiple updates.

share|improve this answer
    
Thanks August, but its not showing anything –  Eddy Jul 10 '12 at 13:52
    
what does it show when you just do a 'wmic qfe | findstr kb######'? That should limit the output to just the 1 update. Putting each kb###### on a separate line in the txt file and running the command above should limit it to just the updates you are looking for. –  August Jul 10 '12 at 13:59
    
still doesnt show anything, although when i tried findstr kb only it showed all the updates installed –  Eddy Jul 10 '12 at 14:45
    
Thanks August its working, do you know how to report the not found also –  Eddy Jul 11 '12 at 12:40
    
I'm not sure what you mean exactly. Updates that aren't installed won't show up in the results. –  August Jul 11 '12 at 12:58

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.