SyntaxFix
Write A Post
Hire A Developer
Questions
Use System.Security.Principal.WindowsIdentity.GetCurrent().Name.
System.Security.Principal.WindowsIdentity.GetCurrent().Name
This will get the current logged-in Windows user.