1

I want to get processor code name (eg. "Ivy Bridge", "Sandy Bridge") like CPU-Z tool on Windows but from C# code.

1
  • I am pretty sure CPU-Z has a built in lookup table that goes from model numbers to code names. Commented Apr 9, 2017 at 16:05

1 Answer 1

1

Use PROCESSOR_IDENTIFIER environment variable:

var cpuId = Environment.GetEnvironmentVariable("PROCESSOR_IDENTIFIER");

In my case it prints:

// Intel64 Family 6 Model 69 Stepping 1, GenuineIntel

WMI is also another method to get to the same information but this one is simpler.

Bear in mind, you may never be able to get the exact string CPU-Z provides since it is very likely it has a mapping table that reads this environment variable and internally maps to the code name and outputs.

Sign up to request clarification or add additional context in comments.

1 Comment

Yes I already using WMI Win32_Processor class to get many others CPU properties I need, but code name is not there. So I can get Model, Stepping etc. The question is whether this table is available somewhere?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.