CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Identifying client machines

Print topic Send  topic

Author Message
davidpowell

Posts: 14
Posted: 05/28/2010, 3:25 PM

Hi,

I have developed an intranet that identifies users from their windows logon and their computers from their IP address, thereby allowing a dynamic telephone directory that relates to where that user is at that time - very useful in a hotdesking world.

It is important that the user doesnt have to logon beyond his windows logon - as none of my users can be bothered to do so and the computer / user identification must happen invisibly.

This all works fine on my LAN.

I want to expand this to other sites within my organisation ( I am just a GP, not a programmer).

However, I can no longer use the IP address for this function as the one presented to me from the routers are (obviously) all identical.

I have come across, but since lost, javascript which gets the MAC address of devices on the client PC - this would allow my intranet to idenitfy the location of the user. There are lots around using activex controls, but I dont want to enable these because of the security risks. The one I came across used pure javascript and seemed to work OK.

There are also lots of sites which say it cant be done - they are all wrong!

Does anyone have any nice simple code example of how it can be achieved, or where I could look for it?

I hope this makes sense!

David Powell
_________________
David Powell
View profile  Send private message
lboeldt

Posts: 53
Posted: 07/05/2010, 11:23 PM

Try this function, if you get errors it is most likely because you don't have sufficient rights to the remote computer to get its mac address.

  
function getMac( strComputer )  
  
	dim str  
  
	Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")  
	Set colItems = objWMIService.ExecQuery _  
	  ("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True")  
  
	For Each objItem in colItems  
		str = objItem.MACAddress  
	Next  
  
	getMac = str  
end function  
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.