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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing client machine information

Status
Not open for further replies.

djayakum

Programmer
Feb 2, 2002
28
IN
i have a task in ASP , how can i get the client computer information as follows

1) Computer name of the client ( Not Done)

2) Host Name ( Done By Server Variable )

3) BIOS Info ( Not Done)

if any one have idea please give me reply as soon as possible

Thanks in advance

Jay



 
Asp code is parsed on the server, not on the client.

The only information available to the server is through the server variables collection. These don't include client machine name.
 
thanks for ur reply, i can able to dispaly the computer name and ip address , but i dont know how to get the bios serial number, i tried WMI its partially working

'Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & compname & "\root\cimv2")
strComputerName = "comp-1343"
Set objWMIService = GetObject("winmgmts:\\" & strComputerName & "\root\cimv2")
Set colBios = objWMIService.ExecQuery("Select SerialNumber from Win32_BIOS")
GetBiosVer = " "
For Each objBios In colBios
Label1.Caption = CStr(objBios.SerialNumber)
Next

Above code giving "000000" as serial number, but i can able to get the all other bios information except some information like Serial number....

so if any one having idea please give some reply as soon as possible

Bye for now

Jay

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top