Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Find All Events from All Logs Related to PowerShell

$
0
0

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.

 


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>