strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colitems = objwmiservice~execquery("Select * from Win32_PnPEntity")
DO objitem OVER colitems
SAY "Class GUID:" objitem~classguid
SAY "Description:" objitem~description
SAY "Device ID:" objitem~deviceid
SAY "Manufacturer:" objitem~manufacturer
SAY "Name:" objitem~name
SAY "PNP Device ID:" objitem~pnpdeviceid
SAY "Service:" objitem~service
SAY
END |