[python-win32] Win32_NTLogEvent access denied exception

inf200640 at ucf.edu.cu inf200640 at ucf.edu.cu
Thu Mar 10 18:59:29 CET 2011


Hello list,

I'm having problems recieving local wmi events from Win32_NTLogEvent class. It turns
out
that I want to know which user starts or stops services. I set a watcher for that
propose and it raises the following exception:

x_access_denied: <x_wmi: Unexpected COM Error (-2147352567, 'Ocurri\xf3 una exce
pci\xf3n.', (0, u'SWbemServicesEx', u'Acceso denegado ', None, 0, -2147217405),
None)>

I have done the same with other classes and everything works just fine.

The script is running from the system's administration account. Do I need to provide
extra privileges in con = wmi.WMI()?

Could anyone help me figure out what is happening, please?

Thanks a lot for your assistance,
Silvia




---
Free the Cuban Five!
http://www.injusticia.cubaweb.cu/
http://www.antiterroristas.cu/


More information about the python-win32 mailing list