banner



How To Tell If A Certain Windows Update Is Installed

6 Answers six

In addition to systeminfo there is likewise wmic qfe

Example:

                wmic qfe get hotfixid | find "KB99999" wmic qfe | notice "KB99999"                              

At that place is also update.exe

Or from powershell, just adjust it for your needs:

                Get-WmiObject -query 'select * from win32_quickfixengineering' | foreach {$_.hotfixid}                              

user avatar

jscott

24k eight gold badges 77 silverish badges 99 bronze badges

answered Apr 27, 2011 at eleven:17

user avatar

4

  • How I've done information technology in the past. Really easy with psexec, but continue in mind the find control might not work unless yous specify stdout instead of the weird hybrid crap wmic spits out on a regular basis. wmic /output:stdout qfe go hotfixid | find "KB99999".

    Apr 27, 2011 at 11:59

  • Do I need to run it as administrator? Seems like other places tells me that I do demand. And then I want to check.

    May 11, 2016 at 0:31

  • For whatever reason, using "discover" is giving me an incorrect format mistake. Tried unmarried and double quotes.

    Sep 22, 2016 at 14:28

  • @Scott (and others who see the same problem): The PS find cmdlet requires a parameter. The find.exe you run from cmd does not.

    Jan 10, 2018 at 15:11

PowerShell 2.0 contains the get-hotfix cmdlet, which is an easy way to bank check if a given hotfix is installed on the local computer or a remote computer. An instance of the basic syntax is

                go-hotfix -id KB974332                              

user avatar

HBruijn

70.6k 21 golden badges 123 silver badges 187 statuary badges

answered Feb 23, 2015 at 7:35

user avatar

ii

  • This is not present in v4

    May 15, 2017 at 13:35

run "systeminfo" in a CMD window and it will pull back a load of statistics about your arrangement including what patches are installed.

answered Apr 27, 2011 at eleven:12

user avatar

Some other possibilities: Grep %windir%\Windowsupdate.log for the KB number. Or use reg.exe to export the corresponding install keys.

answered Apr 27, 2011 at thirteen:08

user avatar

iii

  • My Windows didn't come with grep. I have to use find.

    Apr 27, 2011 at 13:50

  • @jscott: I know that grep is not-standard on Windows :-) Find or findstr would be more than suitable. But I used the give-and-take grep here as in "to grep" to indicate the process in stead of literally significant the utility "grep". Using grep as a verb is very common in the Unix circles I commonly operate in, so I used the term more or less without thinking it might look odd to a Windows guy.

    April 28, 2011 at 10:41

  • Appreciate this is an one-time respond but the %windir%\Windowsupdate.log only seems to show updates for the by month. Possibly because information technology's configured to roll off later that time simply I'one thousand merely pointing out that in some cases non finding it in that log may not indicate it's absent from the system.

    Jun 28, 2017 at one:09

              wmic qfe listing /format:htable>C:\PatchList%Computername%.html                          

Higher up command volition give the output in html format.

user avatar

Jenny D

27.1k 20 gold badges 74 silver badges 110 bronze badges

answered Apr 28, 2018 at 12:56

user avatar

As someone asked nearly using wmic at a PowerShell prompt, only use Select-String (or sls).

wmic qfe get hotfixid | sls "KB99999"

answered Jul 30, 2018 at thirteen:57

user avatar

Non the answer you lot're looking for? Browse other questions tagged windows control-line-interface patch-management or ask your own question.

Source: https://serverfault.com/questions/263847/how-can-i-query-my-system-via-command-line-to-see-if-a-kb-patch-is-installed

Posted by: hatfieldemenceapery.blogspot.com

0 Response to "How To Tell If A Certain Windows Update Is Installed"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel