Masaki Suketa
6/18/2008 10:49:00 AM
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