How to get Windows logon name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hughs Man

    #1

    How to get Windows logon name


    I am writing an application using vb.net
    And now I want to retrieve the windows login user name
    How I can do so ?


  • Siva M

    #2
    Re: How to get Windows logon name

    Environment.Use rName

    "Hughs Man" <hughs@easyst em-hk.com> wrote in message
    news:e$uBOOV0FH A.3124@TK2MSFTN GP12.phx.gbl...

    I am writing an application using vb.net
    And now I want to retrieve the windows login user name
    How I can do so ?



    Comment

    • Herfried K. Wagner [MVP]

      #3
      Re: How to get Windows logon name

      "Hughs Man" <hughs@easyst em-hk.com> schrieb:[color=blue]
      > And now I want to retrieve the windows login user name[/color]

      'Environment.Us erName'
      'SystemInformat ion.UserName'
      'WindowsPrincip al.Identity'

      --
      M S Herfried K. Wagner
      M V P <URL:http://dotnet.mvps.org/>
      V B <URL:http://classicvb.org/petition/>

      Comment

      Working...