November 23rd, 2012

PowerTip: Find All Events from All Logs Related to PowerShell

Doctor Scripto
Scripter

Summary: Learn how to use the Get-WinEvent cmdlet to return all events from all logs related to Windows PowerShell.

Hey, Scripting Guy! Question How can I easily find events from all the event logs—both standard and the ETW logs that are related to Windows PowerShell?

Hey, Scripting Guy! Answer Use the Get-WinEvent cmdlet and use a wild card pattern for the provider name, as shown here.

Get-WinEvent -ProviderName *powershell*

Note   You may want to run the command with Admin rights because some logs require Admin rights for access.

 

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.

Feedback