strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colitems = objwmiservice~execquery("Select * from Win32_ApplicationService")
DO objitem OVER colitems
SAY "Name:" objitem~name
SAY "Start Mode:" objitem~startmode
SAY
END |