Checking for windows update from Command Prompt
For security reasons, it is important to ensure that your system is properly secured by ensuring it has the necessary security updates/Patch required.
This post will focus on how to identify the status of your patch update. It will be done thorough the command line
A patch is a set of changes to a computer program or its supporting data designed to update, fix, or improve it. This includes fixing security vulnerabilities and other bugs, with such patches usually being called bugfixes or bug fixes, and improving the usability or performance.
KB means Knowledge Base. According to Wikipedia, Microsoft Knowledge Base is a repository of over 200,000 articles made available to the public by Microsoft Corporation. It contains information on many problems encountered by users of Microsoft products. Each article bears an ID number and articles are often referred to by their Knowledge Base (KB) ID
Microsoft releases their security updates through the Knowledge Base when there is a need to patch a vulnerability detected in the current operating system. Thus it is important that your system has the most recent Knowledge Base update.
In this post we will be using a command called WMIC.
WMIC is the Windows Management Instrumentation Command line (WMIC). This is a software utility that allows users to performs Windows Management Instrumentation (WMI) operations with a command prompt.
This command can only be used to retrieve updates for Windows operating system and its components (such as Windows Internet Explorer (IE) or Windows Server roles and features).
So lets begin with the basics (Yeah it could get complicated with the use of power shell)
To list all installed updates
C:/>wmic qfe list full
When searching for a particular Knowledge Base say KB3174644
C:/>wmic qfe list |find "KB3174644"
To have it in detail form
C:/>wmic qfe list full
To spool it to a file
In this example below i will spool the list to a text file called Patch_List.txt in the location "C:\Users\tayo\Documents\Patch_List.txt"
C:/>wmic qfe list>C:\Users\tayo\Documents\Patch_List.txt
To get the latest security update go to the url below:
https://portal.msrc.microsoft.com/en-us/security-guidance/summary
Note that a Knowledge Base contain all the prior Knowledge Bases, thus there will be no need for multiple installation.
Eg
Supposing you missed the installation of KB01, KB02,KB03 and KB04 but you were able to get KB05. It is advisable to install only KB05 as it will contain all previous KBs (KB01....04)
Comments
Post a Comment