Get current user name and with VB.NET

· June 27, 2007

I searched a while for this, actually… which is strange since all i wanted to do is to find the current user name and the current user domain.

It’s dead simple with the following lines: Dim userName As String = System.Environment.UserNameDim userDomain As String = System.Environment.UserDomainName So if you ever look for how to find the information about the current user - here it is

Twitter, Facebook