On 24/09/2013 14:39, Joss Gray wrote: > I'm trying to access the MSFT_ classes in python. Specifically > MSFT_NetAdapter. Win32_ works fine. > > But whatever I try, I get > > 0x80041002 WBEM_E_NOT_FOUND > 0x8004100E WBEM_E_INVALID_NAMESPACE > > errors. > > Specifically I been basing my code on the > http://www.activexperts.com/admin/scripts/wmiscripts/python/0227/ > example. But I substituted 'StandardCimv2' with 'cimv2' as that was > giving me an invalid namespace error. > > Are these classes accessible using pywin32?
[Blatant self-advertising follows...] It's probably worth your installing the wmi module: https://pypi.python.org/pypi/WMI/ (pip install wmi will do it). In addition to easing the pain of using wmi with Python, it includes a useful wmiweb.py script, installed in eg c:\python27\scripts which lets you browse the available namespaces and objects. TJG _______________________________________________ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32