I already have a working script not using log parser. I can already pull the evt files. just wanna pull from a different directory on the system. See
code
If bAllLogs Then
Set cLogFiles = oWMI.ExecQuery("SELECT LogFileName FROM Win32_NTEventLogFile")
sLogName = ""
For...
Making more clearer, i am trying to retrieved .evt files from an archived folder on the computer say 'c:\archived_logs' that contain nothing but .evt files. How would I modify the code below to facilitate this.
If bAllLogs Then
Set cLogFiles = oWMI.ExecQuery("SELECT LogFileName FROM...
Still learning vb.
Trying to read single .evt that is local or in a folder to the script location.
Like this, but I want to designate the path it pulls from
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.