strcomputer = "."
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}!\\" || strcomputer || "\root\cimv2")
coloperatingsystems = objwmiservice~execquery("Select * from Win32_OperatingSystem")
DO objoperatingsystem OVER coloperatingsystems
objoperatingsystem~win32shutdown(1)
END |