Getting Process Windows Titles

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!


Posted Sep 22 2009, 08:00 AM by ps1

Comments

Episode 85 – Lee Holmes talks about v2 « PowerScripting Podcast wrote Episode 85 – Lee Holmes talks about v2 « PowerScripting Podcast
on 09-27-2009 11:23 PM

Pingback from  Episode 85 – Lee Holmes talks about v2 «  PowerScripting Podcast

Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.