From: Masaki Suketa Date: 2008-06-18T19:49:07+09:00 Subject: Re: Ruby & WMI (win32ole) Hello, Nicholas Calvert wrote: > I have tried two libarys in Ruby, win32ole and ruby-wmi. The synatx for > ruby-wmi confused me the most, so can only post a (kind of) working > example with win32ole: > > require 'win32ole' > wmi = > WIN32OLE.connect("winmgmts:\\\\localhost\\root\\virtualization:Msvm_VirtualSystemManagementService") > wmi.ExecMethod(DefineVirtualSystem()) I have not used Powershell, so I'm not sure, but How about the following script? wmi.ExecMethod('DefineVirtualSystem') Regards, Masaki Suketa