"Strasser, Volker" <[EMAIL PROTECTED]> writes: > hello, > > I want to read the eventlogs "dns server" file replication service" on a > windows 2000 or windos 2003 domaincontroller. > I tried a lot with win32::eventlogs but it cannot read it. > who knows how to do that?
You can use the Win32_NTLogEvent WMI class for this: http://msdn.microsoft.com/library/en-us/wmisdk/wmi/win32_ntlogevent.asp For example, using the "instances.pl" script at <http://unattended.sourceforge.net/apps.html#instances>, this command: instances.pl Win32_NTLogEvent -q "LogFile = \"System\" AND EventCode = 6005" ...enumerates all of the System Log events with an Event ID of 6005 (see also http://support.microsoft.com/?id=245222). Specifying a LogFile of "DNS Server" or "File Replication Service" should work for you. But be warned: This can be slow. In fact, for me at least (Win2k), queries which match lots of records seem to take forever. More specific queries work fine. - Pat _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
