Get the client PC Windows user name and PC Name.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi

I am trying to get the Windows username and PC name from the client PC
in VB or c#.

I am using 'forms' authentication and 'anonymous access' in IIS. Is it
possible to get the client PC's windows username and Computer Name
whilst using this combination?

Access levels to various pages are stored in an SQL Server table
against their Windows Login Name, which is why I use 'forms'
authentication. The site currently runs accross two domains and may go
external in the future, so I don't want to move away from forms
authentication. The data would be useful for me for logging and so that
Intranet Users don't have to type their user name every time they log
on.

Is there some client-side script that can do this? I have tried using
API's, System.Security and User.Identity to no avail. I can only get as
far as the Server IIS logon name.

Any suggestions would be appreciated.

Thanks

Jared

.



Relevant Pages

  • IIS settings to give faster response
    ... Account used for anonymous access: ... For the following authentication methods, ... My Client application for the first time takes time to find the ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to capture network login using ASP.NET
    ... You'll need to disable anonymous access to the home page if you wish the ... the home page does not have any menu link to the admin ... Novell Network (Webserver without Novell client). ... Integrated Windows Authentication is checked. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Disabling Anonymous SMTP Submission, Relay
    ... I want to disable anonymous access ... and require authentication. ... credentials for outgoing/SMTP in the client it will throw an error until I ...
    (microsoft.public.exchange.admin)
  • Re: ... forbidden with client authentication scheme Anonymous
    ... The client and server are on different physical systems. ... I believe I've made sure that Anonymous access is enabled: ... Authentication and Access Control> Enable Anonymous Access is ...
    (microsoft.public.dotnet.framework.webservices)
  • [Full-disclosure] [GOATSE SECURITY] Clench: Goatses way to say "screw you" to certificate author
    ... Application layer authentication-inherent validation of public key ... Goatse Security’s new simple password-based authentication mechanism ... getting hundreds of thousands or millions of users to install a client ... client hashes locally and then sends the hash to the server. ...
    (Full-Disclosure)