Search code examples
c#servicentlm

How to retrieve current NTLM username from a C# Windows Service?


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


Solution

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

    Environment.UserName