Summary: Boe Prox shows how to use Windows PowerShell to find the titles of windows.
How can I use Windows PowerShell to find the titles of windows?
Use Get-Process and display the title of the processes for windows by looking at
the MainWindowTitle property, for example:
Get-Process | Where {
$_.MainWindowTitle
} |
Select-Object ProcessName, MainWindowTitle
ProcessName MainWindowTitle
----------- ---------------
ApplicationFrameHost People
chrome Browse by Tags - Hey, Scripting Guy! Blog - Site Home - Te...
mstsc Remote Desktop Connection
notepad Untitled - Notepad
PeopleApp People
powershell [x64] | BOE-PC\boepr on BOE-PC | PowerShell GC Memory: 25....
powershell_ise Windows PowerShell ISE
SnagitEditor Snagit Editor - [Dec 20, 2015 4:55:14 PM]
WinStore.Mobile Store
WINWORD Manage Window Placement using Pinvoke.docx [Compatibility ...