get-eventlog -list
yields this:
Max(K) Retain OverflowAction Entries Log
------ ------ -------------- ------- ---
20,480 0 OverwriteAsNeeded 14,418 Application
20,480 0 OverwriteAsNeeded 0 HardwareEvents
512 7 OverwriteOlder 0 Internet Explorer
20,480 0 OverwriteAsNeeded 8 Key Management Service
128 0 OverwriteAsNeeded 36 OAlerts
Security
20,480 0 OverwriteAsNeeded 8,771 System
512 7 OverwriteOlder 0 Windows Azure
15,360 0 OverwriteAsNeeded 53 Windows PowerShell
and...
get-eventlog -list | get-member
results in this (truncated for brevity):
TypeName: System.Diagnostics.EventLog
Name MemberType Definition
---- ---------- ----------
Disposed Event System.EventHandler
Disposed(System.Object, System.EventArgs)
EntryWritten Event
System.Diagnostics.EntryWrittenEventHandler EntryWritten(System.Object, System....
BeginInit Method void BeginInit(), void
ISupportInitialize.BeginInit()
Clear Method void Clear()
Close Method void Close()
CreateObjRef Method System.Runtime.Remoting.ObjRef
CreateObjRef(type requestedType)
My question is: Why does get-eventlog -list produce the first set and why when this is piped into get-member yields the second? The two results do not seem related? And...where is this information stored? I mean, how could I find this out myself?
Thanks.