How can I read ProcessorID on Surface Pro 9 tablet through the command prompt?

Anonymous
2024-01-02T19:53:52+00:00

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 the previous tablets (I was using a surface pro 7 previously), however after switching to a new surface pro 9, the program no longer outputs the Processor ID.

Here is the code that I have written to read and save the processor id info:

@echo off 

rem get and save the processor Id number 

setlocal enableDelayedExpansion 

for /f "tokens=*" %%a in ('wmic cpu get processorid') do ( 

    set "processor=%%a" 

    set /a "count1+=1" 

    if !count1! == 2 ( 

        goto :someOtherPlace 

    ) 

)

Below is a sample of the ouput I get when using the command "wmic cpu get processorid" through the terminal.

--------

C:\Windows\system32>wmic cpu get ProcessorId

ProcessorID

-------

Below is an example of the output when the ProcessorID is retrieved correctly from an older surface pro. (I have changed the output ProcessorID info for security purposes.)

-------

C:\Windows\system32>wmic cpu get ProcessorId

ProcessorID

ABCDEFGH012345AB

-------

Does anyone have any idea what has changed between these two tablets that is not allowing me to retrieve the Processor ID information, or provide a different way for me to gather the info from the command terminal?

Thanks!

Surface | Surface Pro | Safety and security

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2024-01-03T17:29:36+00:00

    Hi Bailey Craner

    Thank you for posting in Microsoft Community.

    Based on the description you posted, it seems that you have an issue with Surface Pro9 wherein you want to know how to read Processor ID on Surface Pro9.

    We can collaborate to find the optimal solution to this problem. To begin, I will ask you a few questions to narrow down the issue.

    • Are you using a Surface Pro9 Intel Gen core processor or the 5G Surface Pro9?
    • Did you try this command to another Windows 11 Home device, and it work?

    The Surface Pro 9 is equipped with the latest 11th Gen Intel Core processors, which may have varying command line options for obtaining the Processor ID. You can attempt to retrieve the Processor ID on your Surface Pro 9 by executing the following command:

    Type**: wmic cpu get ProcessorID /format:list** then you press enter.

    If the current format of the Processor ID is not compatible with your legacy program, you may need to retrieve it in a different format. If this doesn’t work, you can contact the manufacturer of your legacy program to check if they have any updates or workarounds for retrieving the Processor ID on newer devices.

    Thank you for your understanding. Please let me know how it goes.

    Kind regards,

    Christopher.

    0 comments No comments
  2. Anonymous
    2024-01-12T01:34:07+00:00

    Hello Bailey Craner

    We haven't heard from you, so we assume that your issue has already been addressed. We will not be monitoring this thread moving forward so, if you need further assistance, please create a new thread to discuss these concerns by clicking this link: Create a new question (microsoft.com)Thank you for understanding.

     Regards,

    Christopher

    0 comments No comments