September 20th, 2014

PowerTip: Use PowerShell to Find Object Events

Doctor Scripto
Scripter

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

Category
Scripting

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.