strcomputer = "atl-ws-o1"
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate}!\\" || strcomputer || "\root\cimv2")
colcomputer = objwmiservice~execquery("Select * from Win32_ComputerSystem")
DO objcomputer OVER colcomputer
SAY "Logged-on user:" objcomputer~username
END |