• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

TweakHound

Computer stuff...

  • Home
  • Windows XP
  • Windows Vista
  • Windows 7
  • Windows 8
  • Windows 10
  • Windows 11
  • Linux
  • Tweak Guides
  • Site Info
    • About
    • About Me
    • TweakHound’s World
    • Contact
    • My Computers
    • Old Articles
    • Privacy Policy
    • Old Index
    • Advanced Search

PowerShell – Check For Meltdown and Spectre

intellogo

January 5, 2018, 05:20(EST) By Eric (a.k.a. TweakHound)

IMHO this is a Geek tool for fun. Got Intel? You’re vulnerable.

See: Windows Client Guidance for IT Pros to protect against speculative execution side-channel vulnerabilities

Download SpeculationControl (click on Show under File List)
Open PowerShell as Admin

Type: Save-Module -Name SpeculationControl -Path path
You’ll get an output like “PowerShellGet requires NuGet provider….”
Enter Y for yes
Type: Save-Module -Name SpeculationControl -Path path
Type: Install-Module -Name SpeculationControl
You’ll get an output like “Untrusted repository. You are installing the modules from an untrusted repository…”
Enter Y for yes
Type: Install-Module -Name SpeculationControl
Type: Set-ExecutionPolicy RemoteSigned
You’ll get output like “Execution Policy Change. The execution policy helps protect you from scripts that you do not trust…”
Enter Y for yes
Type: Import-Module SpeculationControl
Type: Get-SpeculationControlSettings

—Code from my computer—
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

PS C:\Windows\system32> Save-Module -Name SpeculationControl -Path G:\Downloads

NuGet provider is required to continue
PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet
provider must be available in 'C:\Program Files\PackageManagement\ProviderAssemblies' or
'C:\Users\Eric\AppData\Local\PackageManagement\ProviderAssemblies'. You can also install the NuGet provider by running
'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'. Do you want PowerShellGet to install and import
the NuGet provider now?
[Y] Yes [N] No [S] Suspend [?] Help (default is "Y"): y
PS C:\Windows\system32> Save-Module -Name SpeculationControl -Path G:\Downloads
PS C:\Windows\system32> Install-Module -Name SpeculationControl

Untrusted repository
You are installing the modules from an untrusted repository. If you trust this repository, change its
InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from
'PSGallery'?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): y
PS C:\Windows\system32> Install-Module -Name SpeculationControl
PS C:\Windows\system32> Get-SpeculationControlSettings
Get-SpeculationControlSettings : The 'Get-SpeculationControlSettings' command was found in the module
'SpeculationControl', but the module could not be loaded. For more information, run 'Import-Module SpeculationControl'.
At line:1 char:1
+ Get-SpeculationControlSettings
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-SpeculationControlSettings:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CouldNotAutoloadMatchingModule

PS C:\Windows\system32> Set-ExecutionPolicy RemoteSigned
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): y
PS C:\Windows\system32> Import-Module SpeculationControl
PS C:\Windows\system32> Get-SpeculationControlSettings
Speculation control settings for CVE-2017-5715 [branch target injection]

Hardware support for branch target injection mitigation is present: False
Windows OS support for branch target injection mitigation is present: True
Windows OS support for branch target injection mitigation is enabled: False
Windows OS support for branch target injection mitigation is disabled by system policy: False
Windows OS support for branch target injection mitigation is disabled by absence of hardware support: True

Speculation control settings for CVE-2017-5754 [rogue data cache load]

Hardware requires kernel VA shadowing: True
Windows OS support for kernel VA shadow is present: True
Windows OS support for kernel VA shadow is enabled: True
Windows OS support for PCID optimization is enabled: True

Suggested actions

* Install BIOS/firmware update provided by your device OEM that enables hardware support for the branch target injection mitigation.
* Follow the guidance for enabling Windows support for speculation control mitigations are described in https://support.microsoft.com/help/4072698

BTIHardwarePresent : False
BTIWindowsSupportPresent : True
BTIWindowsSupportEnabled : False
BTIDisabledBySystemPolicy : False
BTIDisabledByNoHardwareSupport : True
KVAShadowRequired : True
KVAShadowWindowsSupportPresent : True
KVAShadowWindowsSupportEnabled : True
KVAShadowPcidEnabled : True

-End-

Tagged With: How-To's, Security, This Site

Primary Sidebar

Popular Articles

Windows 10

Tweaking Windows 10

My Windows 10 Tweaks

Windows 10 Privacy Settings

Win10 Diagnostics Tracking Service Gone?

Windows 10 Advanced Disk Cleanup

Win10 Customize Installation Options

Windows 10 Dark Theme

Win10 Wallpapers, Graphics, etc.

All Windows 10 Articles

Windows 8

Tweaking Windows 8.1

Advice On Installing Windows 8.1

Clean Install Windows 8.1

Cleanup After Windows 8.1 Upgrade

Create Shutdown, Restart, Logoff Tiles For Windows 8

Tweaking Windows 8

Install Windows 8 – Clean Install With Upgrade Media

Install Windows 8 – Upgrade

Windows 8 – Cleaning Up After You’ve Upgraded

Windows 8 Freeware Machine

Windows 8 SSD Settings, Etc.

How To Resize Your Windows 8 Partition

Create Windows 8 Recovery Media

Windows 8 – Elevated Command Prompt

How To Fix The Windows Bootloader

Windows 7

Installing Windows 7

Tweaking Windows 7

Windows 7 Diagnostics Tracking Service

The Windows 7 Freeware Machine

The Windows 7 Pagefile And Running Without One

Bad Tweaks

SSD Tweak Guide (sort of)

The noguiboot (no GUI Boot) Tweak

NtfsMemoryUsage=2 Tweak

More Windows 7 articles here.

Windows Vista

Installing Windows Vista

Tweaking Windows Vista

More Windows Vista articles here.

Windows XP

eXPired - The Last Windows XP Guide You'll Ever Need

The Right Way To Install Windows XP

Super XP Tweaking Guide

The Freeware XP Machine

Bad Tweaks

More XP Articles here and here.

Backup

Backup Article Greatest Hits – Vol. 1

Other

Cataloging Your Music Collection

Finding Good Album Art

Converting Vinyl Records To Digital Music – A Non-Audiophiles Guide

Windows All-In-One Recovery Flash Drive

SSD Tweak Guide (sort of)

Raidmax Blackstorm Case Review

Disk Partitioning

Ditch Those CD's! A Guide To Using USB Flash Drives

Checking Your Disks For Problems

Bad Tweaks

More articles here

Tags

Android Backup Beer Computer Hardware Computer News Cool Tools Freeware How-To's Linux Off Topic openSUSE Playlists Privacy Security Software This Site vacation Veterans Windows 7 Windows 8 Windows 10 Windows 11 Windows Vista Windows XP

TweakHound - Optimize Your Computing Experience! TweakHound - Optimize Your Computing Experience!

Copyright 2002-2025 by Eric Vaughan All material contain here is the property of the materials owner. Windows, Windows XP, Windows Vista, Windows Seven, Windows 8, Windows 10, Windows 11, Microsoft, and all associated logos are trademarks/property of Microsoft. You may not use or copy any material from tweakhound.com without expressed written permission. Hotlinking to any material within this site is forbidden. Privacy Policy