Hi. I'm in the need of a hardware ID generator, that does not change, when the pc is reinstalled, drivegetserial, is not an option, since it is assigned by windows.
and the cpu id is not unique.
whats your thoughts about this, using cpu + bios version?
any better suggestions.
I got this for getting the cpu id, however it's not unique.
maybe someone knows how I can get the bios version/id, or got better suggestion for a hardware id generator
and the cpu id is not unique.
whats your thoughts about this, using cpu + bios version?
any better suggestions.
I got this for getting the cpu id, however it's not unique.
[ autoit ]
Func _GetHWID($sHWID) $sHWID = 'ExampleID' Local $sData = $sHWID & @CRLF Local $aArray = StringSplit($sData, @CRLF) If @error Then Return SetError(1, 0, 0) EndIf Return _ArraySearch($aArray, $sHWID) > -1 EndFunc ;==>_GetHWID Func _HWID() $cpu = GetProcessorId() $reversehwid = _StringReverse($cpu) Return $reversehwid EndFunc ;==>_HWID Func GetProcessorId() $objWMIService = ObjGet("winmgmts:\\localhost\root\CIMV2") $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_Processor", "WQL", 0x10 + 0x20) If IsObj($colItems) Then For $objItem In $colItems Local $PROC_ID = $objItem.ProcessorId Next Return $PROC_ID Else Return 0 EndIf EndFunc ;==>GetProcessorId
maybe someone knows how I can get the bios version/id, or got better suggestion for a hardware id generator