PowerTip: Use PowerShell to Find Object Events


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


Comments (2)

Skip to main content