strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colitems = objwmiservice~execquery("Select * from Win32_MotherboardDevice")
DO objitem OVER colitems
SAY "Device ID:" objitem~deviceid
SAY "Primary Bus Type:" objitem~primarybustype
SAY "Secondary Bus Type:" objitem~secondarybustype
SAY
END
|