General discussion

Locked

Finding CPU ID

By csaraja ·
I want to get the unique machine id or CPU ID through GUI based program. If it possible?. If so please guide me.

Regards
Raja C S A

This conversation is currently closed to new comments.

4 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by dryflies In reply to Finding CPU ID

here is a sample script in WMI that gives you all the info you need about your processor. To keep from getting a bunch of little dialogs, concat all the answers together and use WScript.echo once only.

Please rate this answer!

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colCSes = objWMIService.ExecQuery("SELECT * FROM Win32_ComputerSystem")
For Each objCS In colCSes
WScript.Echo "Computer Name: " & objCS.Name
WScript.Echo "System Type: " & objCS.SystemType
WScript.Echo "Number Of Processors: " & objCS.NumberOfProcessors
Next
Set colProcessors = objWMIService.ExecQuery("Select * from Win32_Processor")
For Each objProcessor in colProcessors
WScript.Echo "Manufacturer: " & objProcessor.Manufacturer
WScript.Echo "Name: " & objProcessor.Name
WScript.Echo "Description: " & objProcessor.Description
WScript.Echo "Processor I " & objProcessor.ProcessorID
WScript.Echo "Address Width: " & objProcessor.AddressWidth
WScript.Echo "Data Width: " & objProcessor.DataWidth
WScript.Echo "Family: " & objProcessor.Family
WScript.Echo "Maximum Clock Speed: " & objProcessor.MaxClockSpeed
Next

Collapse -

by dryflies In reply to

will you please rate my answer.

Collapse -

Finding CPUID

by csaraja In reply to

Thank you very much for ur timely help.

Its working fine and I got what I need.

Rgds
Raja CSA
+91 98402 72827

Collapse -

by 3xp3rt In reply to Finding CPU ID

if you are using DELPHI try this:
download from http://www.mitec.cz/ the MITEC delphi component, includ msysteminfo component to your form and you get the CPU serial number, like string with following
"msysteminfo.CPU.SerialNumber"
you can get other informations like:
"msysteminfo.CPU.CPUIDNameString"
"msysteminfo.CPU.Signature"
"msysteminfo.CPU.ExtendedSignature"

Back to Web Development Forum
4 total posts (Page 1 of 1)  

Related Discussions

Related Forums