0

As per title, how to retrieve current NTLM username from a C# Windows Service?

Gianluca Ghettini
  • 11,129
  • 19
  • 93
  • 159
  • [Duplicate](https://stackoverflow.com/questions/1240373/how-do-i-get-the-current-username-in-net-using-c) answers question "as per title", but I strongly suspect you believe "current user" is some magical concept of "current interactive user" - one from many picked by presumably [fair random number](https://www.xkcd.com/221/) :). – Alexei Levenkov Jan 10 '18 at 16:19

1 Answers1

2

Is the Environment.UserName property what you're looking for?

Environment.UserName

Adam Brown
  • 1,667
  • 7
  • 9