Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to pull windows useer name of user accessing an intranet web site

Status
Not open for further replies.

Amol1129

Technical User
May 18, 2009
1
AU
I need to pull up the windows user name of the user accessing my web page over intranet.
please suggest how can it be done without letting the users know.
 
Hi,
Not sure you can...You can get their IP address,and maybe the MAC # and look them up in your DNS or DHCP Leases or somewhere..




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
HttpContext.Current.User.Identity.Name

also, set authentication mode to Windows and Identity impersonate to true in the web.config.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Hi,
It is always great to learn something new...Thanks folks..





[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top