strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colchassis = objwmiservice~execquery("Select * from Win32_SystemEnclosure")
DO objchassis OVER colchassis
chassis. = objchassis~chassistypes
DO i OVER chassis.
SAY VALUE("chassis." || i)
END
SAY
END
|