{"id":3991,"date":"2009-05-22T14:34:00","date_gmt":"2009-05-22T14:34:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2009\/05\/22\/get-windowtitle-ps1\/"},"modified":"2019-02-18T13:12:37","modified_gmt":"2019-02-18T20:12:37","slug":"get-windowtitle-ps1","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/get-windowtitle-ps1\/","title":{"rendered":"Get-WindowTitle.ps1"},"content":{"rendered":"<p>I do this so frequently that I finally put it into a script called Get-WindowTitle.ps1 . <\/p>\n<p><font color=\"#004080\" size=\"2\" face=\"Consolas\">Get-Process |where {$_.mainWindowTItle} |format-table id,name,mainwindowtitle \u2013AutoSize<\/font><\/p>\n<p>Here is what it does:<\/p>\n<p><font color=\"#004080\" size=\"2\" face=\"Consolas\">[4696:0]PS&gt; Get-WindowTitle <\/font><\/p>\n<p><font color=\"#004080\" size=\"2\" face=\"Consolas\">&nbsp; Id Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MainWindowTitle <br \/>&nbsp; &#8212; &#8212;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8212; <br \/>2448 mmc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Server Manager <br \/>4696 powershell&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Administrator: Windows PowerShell <br \/>3828 powershell_ise&nbsp;&nbsp;&nbsp; Administrator: C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell_ise.exe <br \/>4116 WindowsLiveWriter Get-VisibleProcess.ps1 &#8211; Windows Live Writer<\/font><\/p>\n<p>Enjoy!<\/p>\n<p>Jeffrey Snover [MSFT] <br \/>Distinguished Engineer <br \/>Visit the Windows PowerShell Team blog at:&nbsp;&nbsp;&nbsp; <a href=\"http:\/\/blogs.msdn.com\/PowerShell\">http:\/\/blogs.msdn.com\/PowerShell<\/a> <br \/>Visit the Windows PowerShell ScriptCenter at:&nbsp; <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/hubs\/msh.mspx<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I do this so frequently that I finally put it into a script called Get-WindowTitle.ps1 . Get-Process |where {$_.mainWindowTItle} |format-table id,name,mainwindowtitle \u2013AutoSize Here is what it does: [4696:0]PS&gt; Get-WindowTitle &nbsp; Id Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MainWindowTitle &nbsp; &#8212; &#8212;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8212; 2448 mmc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Server Manager 4696 powershell&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Administrator: Windows PowerShell 3828 powershell_ise&nbsp;&nbsp;&nbsp; Administrator: C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell_ise.exe 4116 WindowsLiveWriter Get-VisibleProcess.ps1 &#8211; Windows [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3991","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell"],"acf":[],"blog_post_summary":"<p>I do this so frequently that I finally put it into a script called Get-WindowTitle.ps1 . Get-Process |where {$_.mainWindowTItle} |format-table id,name,mainwindowtitle \u2013AutoSize Here is what it does: [4696:0]PS&gt; Get-WindowTitle &nbsp; Id Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MainWindowTitle &nbsp; &#8212; &#8212;-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8212; 2448 mmc&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Server Manager 4696 powershell&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Administrator: Windows PowerShell 3828 powershell_ise&nbsp;&nbsp;&nbsp; Administrator: C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell_ise.exe 4116 WindowsLiveWriter Get-VisibleProcess.ps1 &#8211; Windows [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/3991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=3991"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/3991\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=3991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=3991"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=3991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}