Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

277
Views
Is it possible to get client machine OS user name in asp.net web application

I need to get the server (client pc) OS username (not the machine name) locally. I found the code

Session ["OS_USER"] = Environment.UserName;

but when I host IIS Environment.UserName it captures the IIS username.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Take a look at How do I get the current username in .NET using C#?

For Windows following code might work:

string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!