I'd like to find the methods and properties of the get-eventlog
cmdlet. But when I try "get-member | get-eventlog" it does not do what
I expect it to. Is there some other way to find the properties for the
get-eventlog cmdlet? Thanks.
- Raheem
get-eventlog -List | get-member
get-eventlog -List | fl *
Then for each log (using System log as an example)
get-eventlog System | get-member
get-eventlog System | fl *
- Larry
More generic approach I like to use sometimes is this:
[System.Diagnostics.EventLog].GetMembers() | Where {$_.MemberType -match
"Property|Method"} | Select Name, MemberType
Of course you can change [System.Diagnostics.EventLog] to any class.
Advantage is that you don't need to have object instance.
Martin
"Larry__Weiss" <l...@airmail.net> wrote in message
news:usDyspBX...@TK2MSFTNGP06.phx.gbl...
- Larry
Martin
"Larry__Weiss" <l...@airmail.net> wrote in message
news:euYjKhnX...@TK2MSFTNGP06.phx.gbl...