Re: SWbemObjectEx not found

2007-12-27 Thread Tim Golden
jmgmail wrote: > I have a working VBScript and failed to convert it to Python. Can > someone help? > > ==VBScript:== > Set locator = CreateObject("WbemScripting.SWbemLocator") > Set Services = locator.ConnectServer("smsroot1","root/SMS/site_A") > Set instCollection = > Services.Get("SMS_Collection

Re: SWbemObjectEx not found

2007-12-25 Thread kyosohma
yDirectRule" > > instCollection.AddMembershipRule(instDirectRule) > ==END== > > The error from Python is: > Traceback (most recent call last): > File "C:\temp\pushpkg.py", line 19, in ? > instCollection.AddMembershipRule(instDirectRule) > File "C:\Pytho

SWbemObjectEx not found

2007-12-24 Thread jmgmail
nstDirectRule) File "C:\Python24\lib\site-packages\win32com\client\dynamic.py", line 491, in __getattr__ raise pythoncom.com_error, details pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, 'SWbemObjectEx', 'Not found ', None, 0, -2147217406), None) ==END== Spend a whole day on this already and still have no clue. Thank you. -- http://mail.python.org/mailman/listinfo/python-list