When I run "systeminfo" in Windows, it shows a list of hot fixes that are installed in my computer, in the form of KBxxxxxxx. Is there a way (preferably command line) to know explicit what are the hot fixes that I am missing?
-
Specifically, I am looking for a solution that depends only native utility that is readily available on Windows (such as wmic) or Microsoft (such as Sysinternals), and not 3rd party solution such as Windows-Exploit-Suggester. Thanks. – xyz May 01 '16 at 23:43
-
Which version of Windows? – DavidPostill May 02 '16 at 11:31
-
The more generally applicable the better, possibly XP and onwards. – xyz May 02 '16 at 22:31
-
See my answer... – DavidPostill May 02 '16 at 22:32
1 Answers
Is there a way (preferably command line) to know what hot fixes are missing?
I am looking for a solution that depends only native utility that is readily available on Windows (such as wmic) or Microsoft (such as Sysinternals)
Assuming you don't mind downloading scripts from the Microsoft Technet Gallery then you can use the PowerShell script Get-WindowsUpdates.ps1:
This script will get all available udpates for the computer it is run on. It will then optionally install those updates, provided they do not require user input.
...
Without any parameters the script will return the title of each update that is currently available.
NAME
C:\scripts\powershell\production\Get-WindowsUpdates.ps1SYNOPSIS
Get and optionally install Windows Updates
SYNTAX
C:\scripts\powershell\production\Get-WindowsUpdates.ps1 [-Install] [-EulaAccept] [<CommonParameters>]DESCRIPTION
This script will get all available udpates for the computer it is run on.
It will then optionally install those updates, provided they do not require user input.
This script was based off the original vbs that appeared on the MSDN site. Please see the Related Links section for the URL.
Without any parameters the script will return the title of each update that is currently available.
Source Get-WindowsUpdates.ps1
- 153,128
- 77
- 353
- 394
-
I run like this, C:\Users\wei>powershell -noexit -executionpolicy bypass "& 'C:\Users\wei\Get-WindowsUpdates.ps1'" – xyz May 02 '16 at 22:39
-
-
-
Oh, I need a solution that needs to be able to run without Administrator's right, only to list the updates, not to install them. – xyz May 02 '16 at 22:48
-
1@wei Try commenting out lines 59 and line 180 which write the the event logs (they are only information messages). – DavidPostill May 02 '16 at 22:50
-
1Unfortunately this is severely outdated now, and have been superseded by others. Like [this](https://www.powershellgallery.com/packages?q=Cmdlets%3A%22Get-WindowsUpdate%22). – not2qubit Feb 22 '19 at 15:01