Sunday, January 18, 2009

gather total number of Event Log entries

to get information about an event log, e.g. Application

PS> new-object -typename system.diagnostics.eventlog -argumentlist application

Max(K) Retain OverflowAction Entries Name
------ ------ -------------- ------- ----
51,200 -1 DoNotOverwrite 2,523 Application

Event viewer won't show these valuable information.

No comments:

Post a Comment