import win32com.client
objWMI = win32com.client.GetObject("winmgmts:\\.\root\CIMV2")
Traceback (most recent call last):
objWMI = win32com.client.GetObject(“winmgmts:\\.\root\CIMV2”)
File “C:\Program Files\Python25\Lib\site-packages\win32com\client\__init__.py”, line 73, in GetObject
return Moniker(Pathname, clsctx)
File “C:\Program Files\Python25\Lib\site-packages\win32com\client\__init__.py”, line 88, in Moniker
moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
pywintypes.com_error: (-2147217375, ‘OLE error 0x80041021’, None, None)