October 2nd, 2013

PowerTip: Discover All Event Logs on a Server

Doctor Scripto
Scripter

Summary: Discover all of the event logs on a server by using Windows PowerShell.

Hey, Scripting Guy! Question How can I discover the event logs that are available on my server?

Hey, Scripting Guy! Answer There two ways to do this.

If you want the classic-type event logs, use:

Get-EventLog –List

If you want to see all of the event logs, including the new style logs that were introduced in Windows Server 2008 and Windows Vista, use:

Get-WinEvent -ListLog *

Note  You need the wildcard character (*); otherwise, you will generate an error message.

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.