How to get CPU ID?

Hi all,

Could you please share me how to get a CPU id in PHP syntax using EXEOUTPUT technology / feature?


HEScript: put this in your UserMain script

procedure cpuidvalue;
S2: String;
S2 := GetManualHardwareID(2)
SetGlobalVar("cpuvalue", S2, False);

And then you can call this procedure from PHP, and read the value of the global variable “cpuvalue”.
See the help and general demo to see how to deal with PHP and HEScript.

Another sample:

1 Like