C# Get Logged in User

System.Environment.GetEnvironmentVariable("USERNAME");

Comments are closed.