Exploring Microsoft Security Update information with PowerShell

Nowadays regular deployment of security updates is a must, whether at home or within the enterprise. If you are responsible to keep systems up to date you deploy the latest updates as soon as possible.  But it is equally important to understand the vulnerabilities being addressed by these updates.

The Microsoft Security Update Guide allows you to find detailed information about security updates. Go to https://portal.msrc.microsoft.com/en-us/ and select “Go to the security update Guide”

image

Next select all options to show (1) and a text filter (2). In this example I have entered “1709” to see everything related to Windows 10 – 1709.

image

The “Details” column includes references to Microsoft Security Advisories or Common Vulnerabilities and Exposures (CVE) articles.

Now let’s take a look how to explore this information through PowerShell using the Microsoft Security Update API. Before we can use the cmdlets included in the MsrcSecurityUpdates PowerShell module we must obtain an API key.

Go to https://portal.msrc.microsoft.com/en-us/developer (sign in with your Microsoft account) and then select “show” to expose your API key.

image

Next open PowerShell and install the MsrcSecurityUpdates Module.

 

Set the API key using the following command:

 

Okay, now we are ready to explore security update information through PowerShell.

To get a list of all Security updates that are available through the API simply enter the following command:

 

Now let’s take a look at the most recent update from December 2017.

 

To generate a report with all CVE details included, we use the following command:

 

 

image

I hope this article provided you with some inspiration as to how to explore security update information through PowerShell.

Leave a Reply