ASP Get Client Name - Please Help

Hello to all!
I am making some changes to a legacy intranet asp application. The app is hosted on a Windows 2008 R2 Server and is running IIS 7.5.

One of the requirements is to show the user IP, username and PC Name in the header of the app. I managed to get username and IP but I cannot find a way to get the client pc name. The user authentication is done through active directory.


Any suggestions????????

Thank you in advance
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rikin ShahMicrosoft Dynamics CRM ConsultantCommented:

I doubt you will not be able to achieve this information as the asp application uses IIS/HTTP(S) protocol which cannot transmit this information. If you are working with some windows application, it would be lot easy.

With certain conditions, I would suggest you go to this article -

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
panos6550Author Commented:
I guess you are right!!!!
I have already found such articles but I thought to post in case there is a small "hack" as my app is only internal and not connected to the internet.


Thank you very very much the quick response!
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
See if this works

Set objSysInfo = server.CreateObject("ADSystemInfo")
response.write "Computer: " & objSysInfo.ComputerName

Open in new window

Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
You may be able to try doing that in vbs

Set wshShell = WScript.CreateObject( "WScript.Shell" )
strComputerName = wshShell.ExpandEnvironmentStrings( "%COMPUTERNAME%" )
WScript.Echo "Computer Name: " & strComputerName

Open in new window

Then perhaps return the output to a text file.  Then in asp read the text file
set t=fs.OpenTextFile("c:\test.txt",1,false)
Response.Write("The text in the file is: " & x)

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.