OK, I could not find anything that would check through a EVPM.exe log file and produce a report that lists success / failures of a scripted ingestion of PSTS. So this snippet, basic that it is, does just that.. Lists the PST and whether it was ingested ok.. Doesn't get any more simple than that.
' Processes the _imp.ini file for results
' S.B. Temp Workaround
' 21st November 2007
Set fso = CreateObject("Scripting.FileSystemObject")
source="log.txt"
noofargs=Wscript.Arguments.Count
if noofargs>0 Then
 source = Wscript.Arguments(0)
end if
Set f = fso.OpenTextFile(source, 1, True)
Do While not f.AtEndofStream
 decodeline=f.ReadLine
 if instr(decodeline,"Processing PST")<>0 Then
 decodeline=trim(decodeline)
 dec=split(decodeline,":")
 decoded=trim(dec(3))
 for inl=0 to 18
  ignore=f.readline
   next
 result=f.readline
 if instr(result,"success")<>0 Then
  result = "Success"
 else
  result = "Failed"
 end if
 wscript.echo decoded & " : " & result
end if
loop
Wednesday, November 21, 2007
Subscribe to:
Comments (Atom)
 
