title: Get Windows User Display Name
body: <p>How do I get the <em>display name</em> of the user that is logged in? Not the <em>username</em>, but the <em>display name</em>, such as is shown in the screenshot below - and as seen on the start menu in any Windows Vista/7 computer.</p>
  
  <p><img src="https://i.stack.imgur.com/Jhs9R.png" alt="enter image description here"></p>
  
  <p>I tried a bunch of different suggestions from other questions, but they all show the <em>username</em>, not the <em>display name</em>. You can see the results of these attempts in the above screenshot.</p>
  
  <pre><code>Imports System.Security.Principal
  Imports System.Threading
  Imports System.IO
  Imports System
  
  Public Class Form1
  
      Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
          MsgBox("1: " &amp; System.Security.Principal.WindowsIdentity.GetCurrent().Name.ToString &amp; vbCrLf &amp; _
                 "2: " &amp; Environment.UserDomainName &amp; vbCrLf &amp; _
                 "3: " &amp; WindowsIdentity.GetCurrent().Name &amp; vbCrLf &amp; _
                  "4: " &amp; Thread.CurrentPrincipal.Identity.Name &amp; vbCrLf &amp; _
                 "5: " &amp; Environment.UserName &amp; vbCrLf &amp; _
                 "6: " &amp; My.User.Name &amp; vbCrLf &amp;
                  "7: " &amp; My.Computer.Name)
  
      End Sub
  
  End Class
  </code></pre>