I would like to create a script in wmi that will compare the serial number pulled from the bios and compare that to a filed in a csv file and create 2 fields in the registry, so when a inventory runs it will place adf defined fields in the workstation inventory. I have two scripts that will read wmi and one that will write the registry but dont know how to get them to talk to each other and search a file with two fields.

On Error Resume Next

Const wbemFlagReturnImmediately = &h10
Const wbemFlagForwardOnly = &h20

arrComputers = Array("localhost")
For Each strComputer In arrComputers
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\CIMV2")
Set colItems = objWMIService.ExecQuery("SELECT * FROM Win32_BIOS", "WQL", _
wbemFlagReturnImmediately + wbemFlagForwardOnly)

For Each objItem In colItems
strBiosCharacteristics = Join(objItem.BiosCharacteristics, ",")
WScript.Echo "SERIAL=" & objItem.SerialNumber

Dim WshShell, bKey
Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.RegWrite "HKLM\Software\lewisclark\WSNUM", "123", "REG_SZ"