PowerTip: Use PowerShell to Find Object Events

Doctor Scripto

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:


Get-Process notepad | Get-Member -MemberType Event


Discussion is closed.

Feedback usabilla icon