From: djberg96@... (Daniel Berger) Date: 2004-06-03T11:33:38+09:00 Subject: Using Win32OLE, WMI and ExecMethod Hi all, Ruby 1.8.1 Windows 2000 I'm playing with WMI to control services via Ruby. I can list services easily enough with InstancesOf(), but how do I call methods on a class? I tried something like this, but this is clearly illegal. Can someone provide me with the right way to do what I'm trying to do here? require "win32ole" wmi = WIN32OLE.connect("winmgmts://") wmi.ExecMethod("Win32_Service","StartService","ClipSrv") # Illegal I've tried various connect strings and done some futzing, but no luck. Please help. Thanks. Dan