PowerShell script for CPU information, incl. CPUID Solved

Page 1 of 7 123 ... LastLast
  1.    #1

    PowerShell script for CPU info, incl. CPUID and μcode version


    With all this mess with the newfound Spectre and Meltdown hardware-based vulnerabilities, users look for solutions from both Microsoft and CPU vendors.
    The microcode updates, posted almost daily, are released based on CPUID.
    The CPUID signature and microcode revision cannot be easily found by the average user.

    So, I created a little PowerShell script to get basic CPU information, including the CPUID signature and the system's current microcode revision.

    Download the updated (v2.4) CPU-info.ps1 file and save it on your Desktop (don't forget to unblock it!).

    Open PowerShell as Administrator and run the following commands:

    Code:
    cd ~\Desktop
    Set-ExecutionPolicy Bypass -Scope Process -Force                                                                                                                                                                                                                                                                     
    .\CPU-info.ps1

    You will get an output similar to that.

    Click image for larger version. 

Name:	CPU-info_2.4.png 
Views:	5 
Size:	46.9 KB 
ID:	236263

    Feel free to use and make changes to the script, to suit your needs.

    I hope that helps somebody.

    Version 2.4 (06-Jun-2019)
    Release notes
    1. Changed the way "Display Family", "Display Model" and "Stepping' are read, based on Intel and AMD CPUID algorithm (0FFM0FMS).
      (F+F+F to HEX, to accommodate AMD "Display Family" notation)
    2. Fixed a bug, which was causing AMD processors "Display Family" to be read incorrectly.
    3. Added Processor signature, which can be referenced to select the correct microcode update file, in case the user wants to apply microcode updates manually.
    4. Reverted the change of v2.2 and shows again the BIOS/UEFI microcode revision, which is read from the Registry and added Disclaimer if the Registry value is updated incorrectly, to notify the user of BIOS/UEFI microcode revision validity.
    Last edited by ddelo; 2 Weeks Ago at 15:09. Reason: Updated the PowerShell script to version 2.4
      My ComputerSystem Spec

  2. Masterchiefxx17's Avatar
    Posts : 475
    Windows 10 Professional 64bit
       #2

    Neat script, I like it!
      My ComputerSystem Spec

  3.    #3

    Masterchiefxx17 said: View Post
    Neat script, I like it!
      My ComputerSystem Spec

  4.    #4

    First post has been updated, to include the installed microcode revision.
      My ComputerSystem Spec

  5.    #5

    Small syntax error: your runtime instructions use an underscore character in the filename -- namely .\CPU_info.ps1. The filename actually includes a dash or hyphen/minus-sign character. So that line should read .\CPU-info.ps1 instead. Otherwise, works like a champ! Thanks,
    --Ed--

    Click image for larger version. 

Name:	image.png 
Views:	4 
Size:	134.7 KB 
ID:	201606
      My ComputersSystem Spec

  6.    #6

    EdTittel said: View Post
    Small syntax error: your runtime instructions use an underscore character in the filename -- namely .\CPU_info.ps1. The filename actually includes a dash or hyphen/minus-sign character. So that line should read .\CPU-info.ps1 instead. Otherwise, works like a champ! Thanks,
    --Ed--

    Click image for larger version. 

Name:	image.png 
Views:	4 
Size:	134.7 KB 
ID:	201606
    Great observation Ed. Thanks. Just changed it.

    The one with underscore was the 1st version. I changed it now to be more PowerShell-like
      My ComputerSystem Spec


  7.    #7

    Good work, Dimitri. Please, keep it up. Always fun to learn more PowerShell.
    Best wishes,
    --Ed--
      My ComputersSystem Spec

  8.    #8



    Thanks Ed.
    I will shortly post a new one, I was working on, to create a cabinet file, from the contents of a folder. Stay tuned.
      My ComputerSystem Spec

  9.    #9

    Nice job, ddelo.

    Btw after observations of visible performance drop during regular use (and catastrophic while using nested virtualization) I decided to disable all that protections on all my home systems using InSpectre & downgrade BIOSes when necessary. Am I alone?
      My ComputerSystem Spec

  10.    #10

    muchomurka said: View Post
    Nice job, ddelo.

    Btw after observations of visible performance drop during regular use (and catastrophic while using nested virtualization) I decided to disable all that protections on all my home systems using InSpectre & downgrade BIOSes when necessary. Am I alone?
    If you're aware of the risks involved, by not implementing the mitigations, it's your computer and you're the only one who evaluates the pros and cons and decides what's best for you!
      My ComputerSystem Spec


 
Page 1 of 7 123 ... LastLast

Related Threads
The PowerShell script execution policies enables you to determine which Windows PowerShell scripts (if any) will be allowed to run on your computer. Windows PowerShell has four different execution policies: Execution Policy Description ...
One of many PowerShell security features is that you can't run a script simply by double clicking it's icon on desktop or in a folder. Doing so will by default open script in Notepad for editing instead. You can right click script and select Run...
A Powershell Script for HandBrake in Software and Apps
Here's the thing. My system is an age-old i3-530 overclocked to 3.5GHz coupled with GTX 1050 2GB. I have around 1.5TB of tutorial videos that I have to encode due to dearth in HDD space. I want to encode the videos while keeping the folder and...
Hope I'm in the right place! I am trying to get a Powershell script to run daily in the task scheduler. It basically purges a folder on one of my drives: Get-ChildItem –Path “D:\Dropbox\Quicken\Backup” –Recurse | Where-Object CreationTime...
A .ps1 script file is a text file that contains one or more Windows PowerShell commands or expressions. A .ps1 file will open with Notepad by default. To run a .ps1 file with PowerShell, you would right click or press and hold on the .ps1 file and...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 05:29.
Find Us