You'd have to test this. i do not know if this works. I adapted your code into an existing AutoIT script I made to pull different info. #include <file.au3> Global $sWMIService, $objWMIService, $colItems, $sName, $oItem $sWMIService = "winmgmts:\\" & @ComputerName & "\root\CIMV2" $objWMIService = ObjGet($sWMIService) IF IsObj($objWMIService) Then $colItems = $objWMIService.ExecQuery("SELECT * FROM Win32_BIOS") If IsObj($colItems) Then For $oItem In $colItems $sName = $oItem.Manufacturer Next EndIf This is an incomplete function. This code doesn't do anything but get the Manufacturer and store it as a variable $sName. I also just declared everything a global. Probably don't need everything but $sName needs to be a global in order for the rest of the script to access it. So now that you have your result stored in $sName, you could verify it with this: MsgBox(64, "Win32_BIOS Item", "manufacturer = " & $sModel) So then now you have this as a global variable, you can do other things with it besides show it in a messagebox. While you can do the multiple IF/Then statements, you should probably use a Switch statement instead.