strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colstartupcommands = objwmiservice~execquery("Select * from Win32_StartupCommand")
DO objstartupcommand OVER colstartupcommands
SAY "Command:" objstartupcommand~command
SAY "Description:" objstartupcommand~description
SAY "Location:" objstartupcommand~location
SAY "Name:" objstartupcommand~name
SAY "Setting ID:" objstartupcommand~settingid
SAY "User:" objstartupcommand~user
END |