[python-win32] WMI Security Access?
Tim Golden
tim.golden at viacom-outdoor.co.uk
Mon Nov 29 11:12:48 CET 2004
[Jan Van Uytven (Wyvern)]
| I'm trying to use wmi to 'catch' events as they are being sent to the
| event log.
|
| >>> import wmi
| >>> c=wmi.WMI()
| >>> event_watcher=c.watch_for
| (notification_type="Creation",wmi_class="Win32_NTLogEvent")
I seem to remember (and WMI security is often
a messy business) that you need to acquire the
Security privilege before interrogating event
logs -- at least on some systems. Have a look
at this example:
http://tgolden.sc.sabren.com/python/wmi_cookbook.html#monitor_error_events
TJG
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
More information about the Python-win32
mailing list