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

PowerTip: Find PowerShell Events and Levels

$
0
0

Summary: Use Windows PowerShell to find PowerShell related events and levels.

Hey, Scripting Guy! Question How can I find events that are related to Windows PowerShell in the event and diagnostic logs, and see the level for those events?

Hey, Scripting Guy! Answer Use the Get-WinEvent cmdlet and a wildcard character for LogName, select the logname and level properties, and make it easy by filtering only Unique entries:

Get-WinEvent -LogName *powershell* | select logname, level -Unique


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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