While surfing to a site within my company, the browser's title seems to be an error message.

In the taskbar, I can see the following:

TF400813: The user 'e387ba6a-0...

While using tasklist /V | findstr "TF", I can see the following:

TF400813: The user 'e387ba6a-09a6-4c12-8c76-6492ea8f582d\dominique.xxxxx

(I've blurred the letters of my family name for privacy reasons, but I can tell you that only five letters are shown, there seems to be a maximum of 72 characters.)

You can clearly see that not the entire error message is visible.

Does anybody know how (if possible) I can see the full window title?

My operating system is Windows-10.

Edit after some more investigation
The following PowerShell command doesn't work:

Get-Process | format-table id,name,mainwindowtitle -AutoSize

Most probably because the mentioned browser window is just one of several browser windows, and the Powershell command only shows the title of the mainwindow.

Thanks in advance

  • What did you mean by "the mentioned browser window is just one of several browser windows" ? can you elaborate a little and tell us which browser did you mean by ?
    – Hackoo
    Nov 8, 2021 at 9:22
  • I'm working with Google Chrome, and apparently you can have different browser windows under the same process ID. When trying to find the title using the Powershell command, I just get one single result for that process ID, and it's not the one with that particular large title. When I close the window, shown in Powershell, I just get a default title, not the one I'm looking for.
    – Dominique
    Nov 8, 2021 at 9:29
  • 2
    Is there a reason you don't use the browsers Inspect/Debug feature to look at the HTML of the page and find the title?
    – JPhi1618
    Nov 8, 2021 at 17:48
  • you can always use khalifa attwood as dummy names. Nov 9, 2021 at 4:52

3 Answers 3


You can try this:

tasklist /fi "WindowTitle eq TF*" /v /fo list

tasklist /fi "WindowTitle eq TF*" /v /fo csv

tasklist /fi "WindowTitle eq TF*" /v /fo list | find /i "TF"
  • The /fo list switch does it for me, thanks.
    – Dominique
    Nov 8, 2021 at 10:44

Frame challenge: Press F12 in the browser to open the dev tools. The full contents of the title tag will be visible in the head section of the inspection pane.

  • 1
    …or even just Ctrl+U. The <title> element is rarely filled dynamically, and usually is amongst the first lines of the html.
    – Bergi
    Nov 9, 2021 at 0:51
  • 13
    If you're using the browser Dev Tools, then it would be better to type console.log(document.title);, as that would display the title, even if it was dynamically set. Looking for a <title> in the <head> doesn't cover any time that it's set dynamically.
    – Makyen
    Nov 9, 2021 at 1:19
  • 4
    In Chrome, ctrl-u shows the source. If you need access to the console, it is ctrl+shift+i. From there, you don't even need console.log. Just typing in document.title will resolve the DOM and show you its content.
    – Nelson
    Nov 9, 2021 at 2:18
  • @Makyen setting the document.title will go as far as creating the <title> element, and as little as setting its text content. html.spec.whatwg.org/multipage/dom.html#document.title
    – Kaiido
    Nov 9, 2021 at 15:43
  • 1
    @Kaiido Yes, but if the HTML has more than one <title> element, then you're not guaranteed to find the one which the browser is actually using. Sure, there's not supposed to be more than one <title> element, but that isn't something which is guaranteed. I'd prefer to do a little more typing than spend time looking for something in the HTML, which might not be the thing I'm actually looking for.
    – Makyen
    Nov 9, 2021 at 16:19

I don't know if this powershell script can answer or not your question for your case :

ForEach ($Browser in $ArrayBrowsers) {
    Get-Process $Browser -EA SilentlyContinue |
        Where mainwindowtitle -NE '' |
            select ID,name,mainwindowtitle | FT -AutoSize
  • Sorry for pulling back the "Accept", but the other answer, based on Tasklist, is more suited for my needs.
    – Dominique
    Nov 8, 2021 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.