OAB to text via Get-Eventlog
I want to gather information about the users not appearing in the GAL via the get-eventlog command. The users' name appears in the General section of events.
Get-EventLog Application | Where {$_.Category -eq "OAL Generator"} > c:\oabevents.txt produces a text file with:
Index Time EntryType Source InstanceID Message
----- ---- --------- ------ ---------- -------
5234718 Jan 10 09:43 Information MSExchangeSA 1073750931 Offline...
EventLog Application | Where {$_.Category -eq "OAL Generator"}|select-object general
does not list any information.
How can I pipe the information in the general section to a text file?
Thanks,
Robert
January 10th, 2011 1:23pm
Robert,
I am not 100% but try to pipe in the command 'out-file' then follow that by the path. You can also pipe FL which will display the event with a full list in detail.
Hope it helps,
Jorge
Jorge R. Diaz PMP, CCNA, MCSE, MCSA Sr. Microsoft Consultant Planet Technologies, Inc.
Free Windows Admin Tool Kit Click here and download it now
January 10th, 2011 1:37pm
Ah, FL provided the answer - I needed the Message field.
Thanks for pointing me in the right direction, Jorge!
January 10th, 2011 5:21pm
Glad I could help!Jorge R. Diaz PMP, CCNA, MCSE, MCSA Sr. Microsoft Consultant Planet Technologies, Inc. Check out by Blog: http://jorgerdiaz.wordpress.com
Free Windows Admin Tool Kit Click here and download it now
January 10th, 2011 9:13pm