Getting Process Windows Titles

by Sep 22, 2009

Get-Process retrieves all running processes and a wealth of information attached to them. One especially useful property is mainWindowTitle which holds the title string visible in the process window (if it has one). This simple line will first filter all processes and remove those that have no window title and then display a table of processes with their window titles:

Get-Process |
where-Object {$_.mainWindowTitle} |
format-table id,name,mainwindowtitle –AutoSize

Twitter This Tip! ReTweet this Tip!