strcomputer = "atl-dc-01"
objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}!\\" || strcomputer || "\root\cimv2")
coloperatingsystems = objwmiservice~execquery("Select * from Win32_OperatingSystem")
DO objoperatingsystem OVER coloperatingsystems
objoperatingsystem~reboot()
END |