From: David dave Date: 2006-03-28T01:32:02+09:00 Subject: WIN32OLE heartburn 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/.