Username and pc name

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

    Username and pc name

    Hi

    How can I get the windows login name and workstation name using vb.net?

    Thanks

    Regards


  • rowe_newsgroups

    #2
    Re: Username and pc name

    On Mar 25, 8:15 pm, "John" <i...@nospam.in fovis.co.ukwrot e:
    Hi
    >
    How can I get the windows login name and workstation name using vb.net?
    >
    Thanks
    >
    Regards


    Learn to use it.

    Thanks,

    Seth Rowe [MVP]

    Comment

    • kimiraikkonen

      #3
      Re: Username and pc name

      On Mar 26, 2:15 am, "John" <i...@nospam.in fovis.co.ukwrot e:
      Hi
      >
      How can I get the windows login name and workstation name using vb.net?
      >
      Thanks
      >
      Regards
      John,
      Use "My.User.Na me" to get current user logged onto Windows.

      and

      Use "My.Computer.Na me" to get computer name.

      and

      Use "My.Computer.In fo.OSFullName" to get operating system's name.

      Regards,

      Onur Güzel

      Comment

      Working...