I have a site that uses the user logged in to the computer to validate which features it will have access to within the site. To capture the user logged in to the machine I am using the code below, I had to change the authentication of IIS for Windows Authentication, however it is requesting username and password when accessing the site for the first time.
string userNameWindows = this.Context.Request.LogonUserIdentity.Name;
How do I capture the user logged in to the machine without requesting login / password on the first access.