Hi,

After using WIN32OLE, I have been having trouble using WMI to create a 
objWMIService object.
1)
locator = WIN32OLE.new(¡ÈWbemScripting.SWbemLocator¡É)
mgmt = locator.ConnectServer computer, '/root/default:StdRegProv', 
login, password
2)
mgmt = 
WIN32OLE.connect(¡Èwinmgmts:\\\\#{computer}/root/default:StdRegProv¡É)

I think these two methods should be equivalent objects, however the 
first method is missing several internal structures like EnumKey.  The 
second method does contain EnumKey, but I can not login with an 
impersonation.  If anyone had any ideas I would appreciate them.

dave

-- 
Posted via http://www.ruby-forum.com/.