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

PowerTip: Use PowerShell to Find Object Events

$
0
0

Summary: Find events from objects by using Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to find what events are offered by a process?

Hey, Scripting Guy! Answer Use Get-Process to retrieve an instance of the process, pipe the results to Get-Member,
           and specify a MemberType Event:

notepad

Get-Process notepad | Get-Member -MemberType Event


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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