This is a way to get hard disk serial number using console command from matlab:

Copy%// Get hard disk serial using windows console command
cmd         = 'wmic diskdrive get SerialNumber';
[~, result] = system(cmd);
%// Extract first hard disk serial number
fields      = textscan( result, '%s', 'Delimiter', '\n' );
fields      = strtrim(fields{1});
serialNo    = fields{2};

The same for the processor id:

Copy%// Get processor id using windows console command
cmd           = 'wmic cpu get ProcessorId';
[~, result]   = system(cmd);    
%// Extract first processor id
fields        = textscan( result, '%s', 'Delimiter', '\n' ); 
fields        = strtrim(fields{1});
processorId   = fields{2};

It's all about using console command wmic + [hardware name] + get + [attributename] and if you want to know the whole attributes available for some device you can use get in your command without naming any attribute, Example:

Copycommand = 'wmic csproduct get'

that will get all available attributes of your machine as a product and its values.

Answer from Sameh K. Mohamed on Stack Overflow
🌐
Intel
intel.com › product support › processors › intel® processor
How to Get the CPUID for Intel® Processors
Follow the steps below using the search bar in Windows*, located on the bottom of the screen. ... The last five digits of the number are displayed to represent the CPUID for the processor. For example, the CPUID for Intel® Core™ Ultra 7 Processor 165U is A064A4. The Intel® Processor Identification Utility reports the CPUID information for the tested processors.
🌐
Intel
intel.com › product support › processors
How to Identify My Intel® Processor
Press on the Windows key on your keyboard and start typing System, choose System Information which will show Processor information with the name, number, and speed of the processor.
🌐
MS.Codes
ms.codes › blogs › computer-hardware › how-to-get-cpu-id-from-command-prompt
How To Get CPU ID From Command Prompt
February 13, 2024 - To get the CPU ID using WMIC, follow these steps: Open the Command Prompt by searching for it in the Windows Start menu or pressing the 'Win + R' key combination and typing 'cmd'.
🌐
Winaero
winaero.com › home › windows 10 › get cpu information via command prompt in windows 10
Get CPU Information via Command Prompt in Windows 10
October 28, 2016 - Press the Win + R hotkeys together on the keyboard and type the following command in your Run box: ... Tip: See the ultimate list of all Windows keyboard shortcuts with Win keys. In the System Summary section, look at the Processor value in ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › troubleshoot › windows-server › setup-upgrade-and-drivers › determine-the-type-of-processor
Determine the type of processor - Windows Server | Microsoft Learn
February 12, 2026 - Information about the processor type is stored in the PROCESSOR_IDENTIFIER registry entry in the following registry subkey: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment The PROCESSOR_IDENTIFIER registry entry ...
🌐
HiTech Service
hitech-us.com › home › windows › 5 ways to find out what cpu you have
How to check your CPU name and speed | HiTech Service
March 2, 2021 - Note: this one works only on Windows 10. Go to System Settings, click on System, and navigate to About tab. You will find such info as Device name, Processor, Installed RAM, Device ID, etc.
🌐
Windows 10 Forums
tenforums.com › tutorials › 132836-check-what-processor-cpu-windows-pc.html
Check What Processor or CPU is in Windows PC - Windows 10 Help Forums
Get-WmiObject win32_Processor 3 You will now see the processor name and details for your computer. That's it, Shawn Brink ... Windows Command Processor - High CPU Usage in Performance & Maintenance Hi, My VPN app told me to update to a new build and when I run the exe my CPU goes crazy, the fan cranks up and according to Task Manager the majority of CPU usage is down to Windows Command Processor.
🌐
Softwareg.com.au
softwareg.com.au › en-us › blogs › computer-hardware › how-to-get-cpu-id-from-command-prompt
How To Get CPU ID From Command Prompt – Softwareg.com.au
PowerShell is a powerful scripting language that can also be used to retrieve the CPU ID from the Command Prompt. Here is how you can do it: Step 1: Open the Start menu, type "PowerShell" in the search bar, and click on the Windows PowerShell option to open the PowerShell window. Step 2: In the PowerShell window, type the following command: Get-WmiObject win32_processor | Select-Object -ExpandProperty ProcessorId.
Find elsewhere
🌐
Action1
action1.com › home › blog › how to get cpu information in windows powershell
Get CPU Information in Windows PowerShell | Action1 Blog
December 5, 2024 - To get the general description string of the processor family, just return the Win32_ComputerSystem SystemType property: Get-WmiObject -Class Win32_ComputerSystem -ComputerName. | Select-Object -Property SystemType · Using the Task Manager in the Windows 10 operating system, you can find out the main characteristics of the central processor.
🌐
Digital Citizen
digitalcitizen.life › processor-name-speed-temperature
3 ways to see what processor is inside your PC, its speed, temperature, etc. | Digital Citizen
October 2, 2025 - See what processor is inside your PC, using the Windows 10 Settings app Another place where you can check what processor is inside your PC is the Task Manager. Open it, switch to its Performance tab, and make sure that CPU is selected on the left side of the window.
🌐
MS.Codes
ms.codes › blogs › computer-hardware › how-to-get-cpu-id
How To Get CPU ID
February 14, 2024 - If you want to learn how to get the CPU ID of your computer, here's a step-by-step guide: Open the Command Prompt by pressing the Windows key + R, typing "cmd," and hitting Enter.
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 2307238 › how-can-i-read-processorid-on-surface-pro-9-tablet
How can I read ProcessorID on Surface Pro 9 tablet through the command prompt? - Microsoft Q&A
I have a legacy program that utilizes a batch file to read the CPU Processor ID from a Windows 10 Surface Pro tablet. I read the Processor ID from the device using the following command - "wmic cpu get ProcessorId" This has always worked with…
🌐
Quora
quora.com › What-is-a-CPUID-How-do-you-check-it-on-Windows-computers
What is a CPUID? How do you check it on Windows computers? - Quora
Answer: CPUID seems to be an instruction set for the CPU allowing it to give information about itself to software. (Basically clock speed, cache size, if it is an intel i9 or ryzen r7 etc.) Pretty straight forward considering it has CPU and ID in it’s name.
🌐
MiniTool Partition Wizard
partitionwizard.com › home › partition manager › 13 ways for how to find what is my processor windows 10/11
13 Ways for How to Find What Is My Processor Windows 10/11 - MiniTool Partition Wizard
September 15, 2023 - In the system information replied by CMD, you can find the processor details. Right-click the Start icon and select Windows PowerShell (Admin). Type “get-computerInfo” and press Enter.
🌐
How-To Geek
howtogeek.com › home › windows › how to see what cpu is in your pc (and how fast it is)
How to See What CPU Is In Your PC (and How Fast It Is)
September 13, 2023 - The name of your computer's processor and its speed are displayed to the right of "Processor." You can press Windows+i to open the Settings app quickly. You can also press the Windows key, type "About" to search your Start menu for this Settings ...
🌐
Geoffchappell
geoffchappell.com › studies › windows › km › cpu › identification.htm
CPU Identification by the 32-Bit Windows Kernel
Of course, with the Pentium being ... processors that do not support cpuid are surely of interest only to historians and perhaps to hobbyists who have enough time on their hands to try running a modern Windows on an 80486 for the dubious fun of seeing what happens. The code for testing that the CPU is an 80386 or 80486, and then for identifying what type of 80386 or 80486, is unchanged, byte for byte, from version 3.10 until it was ...
🌐
Keysight Knowledge Center
docs.keysight.com › display › support › Finding+Your+Host+ID+from+the+command+line
Finding Your Host ID from the command line - Finding Your Host ID from the command line - Keysight Knowledge Center
July 24, 2025 - Listed is some helpful information on how to obtain the necessary CPU ID information needed for codeword generation. These commands should be executed in the root directory. Windows 10 or later : Click on START and type cmd in the search field and hit Enter · At the prompt, type getmac /v /fo list ·
🌐
Pureinfotech
pureinfotech.com › home › how to check processor brand and model on a laptop on windows 10
How to check processor brand and model on a laptop on Windows 10 - Pureinfotech
October 30, 2019 - Trying to find out the CPU details on your PC? Best answer: Use the Settings app or Task Manager to determine this info on Windows 10.