[python-win32] Reading events from event logs using wmi

2008-03-19 Thread Daren Russell
Hi I've been having a look at the wmi module in the hope of being able to read the event logs of a windows server and save them as a standard text file for archival purposes. However, the only method I can see is the BackupEventLog method. I kind of figured if I opened the log, and did a for

Re: [python-win32] Reading events from event logs using wmi

2008-03-19 Thread Tim Golden
Daren Russell wrote: > I've been having a look at the wmi module in the hope of being able to > read the event logs of a windows server and save them as a standard text > file for archival purposes. > > However, the only method I can see is the BackupEventLog method. I kind > of figured if I o

Re: [python-win32] Reading events from event logs using wmi

2008-03-19 Thread Daren Russell
Tim Golden wrote: > Daren Russell wrote: >> I've been having a look at the wmi module in the hope of being able to >> read the event logs of a windows server and save them as a standard text >> file for archival purposes. >> >> However, the only method I can see is the BackupEventLog method. I k

Re: [python-win32] Reading events from event logs using wmi

2008-03-19 Thread Tim Golden
Daren Russell wrote: > Thanks for that. I have found an example for what I want written in > VBS, which is why I tried the for... loop I mentioned, as that is > basically what that script did (though I'm even worse at vbs than I am > with Python ;-) ) > > I've found details on the MSDN site, l

Re: [python-win32] Reading events from event logs using wmi

2008-03-19 Thread Daren Russell
Tim Golden wrote: > Daren Russell wrote: >> Thanks for that. I have found an example for what I want written in >> VBS, which is why I tried the for... loop I mentioned, as that is >> basically what that script did (though I'm even worse at vbs than I am >> with Python ;-) ) >> >> I've found de