Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a Linux admin and do most of my administration from a Linux host. I maintain my Linux patches with a script that goes out and queries Linux hosts, and gets uptime, last patch date and a number of patches to be applied. I'm looking to do the same thing from windows if possible.

I've looked into WMIC for Linux( but from what I've seen it doesn't support the command set necessary to get the windows update information, such as found here:

While it would be great to eventually initiate updates from linux, at this point I'm just looking to get this information. The main reason for doing it this way, is centralized administration and report gathering.

share|improve this question
I have a vbs script that reports back available updates to my linux monitoring system. Can be run as scheduled task or through winexe. Will post it for you when I get back to my PC. – Grant Mar 31 '14 at 19:51

You want the output of wmic qfe get.

I'd suggest using winexe or salt to bridge the gap:

$ sudo salt 'win7-salt' 'wmic qfe get' | head -n8
 Caption                                        CSName     Description      FixComments  HotFixID   InstallDate  InstalledBy              InstalledOn  Name  ServicePackInEffect  Status  WIN7-SALT  Update                        KB2849697               NT AUTHORITY\SYSTEM      3/25/2014                                 WIN7-SALT  Update                        KB2849696               NT AUTHORITY\SYSTEM      3/25/2014                                 WIN7-SALT  Update                        KB2841134               NT AUTHORITY\SYSTEM      3/25/2014                                                 WIN7-SALT  Update                        KB2670838               WIN7-SALT\netdirect      11/14/2013                                   WIN7-SALT  Update                        KB2830477               WIN7-SALT\netdirect      11/14/2013                                                WIN7-SALT  Update                        KB2592687               WIN7-SALT\netdirect      11/14/2013                                      
share|improve this answer
This shows installed updates. How do you show available updates? – Michael Hampton Mar 31 '14 at 18:57
I've got no idea - I run Linux :) – MikeyB Mar 31 '14 at 22:22

Your Answer


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.