I use this code:
- Code: Select all Expand view
FUNCTION cSerialMB()
LOCAL oLoc := CREATEOBJECT( "wbemScripting.SwbemLocator" )
LOCAL oSrv := oLoc:ConnectServer()
LOCAL oJbs := oSrv:ExecQuery( "SELECT * FROM Win32_BaseBoard" )
LOCAL oJob
LOCAL cMBSerial
FOR EACH oJob IN oJbs
cMBSerial := oJob:SerialNumber
NEXT
RETURN cMBSerial