Microsoft has released a PowerShell module to check your device and operating system for the Spectre and Meltdown vulnerabilities.
This PowerShell module is easy to install from an elevated PowerShell window:
Install-Module SpeculationControl
You may need to approve the installation of the NuGet provider if you haven’t previously installed modules from NuGet. You will likely also get a warning about the NuGet repository being untrusted if you haven’t explicitly trusted it. Enter “y” on both prompts.
After the new module is installed, the Get-SpeculationControlSettings cmdlet will output whether or not your OS and device are vulnerable. The screen shots below are from two different devices, one with a microcode and Windows update and one without. The output is simple to evaluate: True/green: good; False/red: bad.