strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colstartupcommands = objwmiservice~execquery("Select * from Win32_ComputerSystem")
DO objstartupcommand OVER colstartupcommands
SAY "Reset Boot Enabled:" objstartupcommand~automaticresetbootoption
SAY "Reset Boot Possible:" objstartupcommand~automaticresetcapability
SAY "Boot State:" objstartupcommand~bootupstate
SAY "Startup Delay:" objstartupcommand~systemstartupdelay
opts. = objstartupcommand~systemstartupoptions
DO i OVER opts.
SAY "Startup Options:" VALUE("OPTS." || i)
END
SAY "Startup Setting:" objstartupcommand~systemstartupsetting
END |