Re: How do I translate Computer Name to MAC Address?
From: Sam Hobbs (samuel_at_social.rr.com_change_social_to_socal)
Date: 01/08/05
- Next message: HKSHK: "ConvertStringSidToSid Problem (VB)"
- Previous message: Mike D Sutton: "Re: how to handle a class object's data set?"
- In reply to: Joseph Geretz: "How do I translate Computer Name to MAC Address?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 8 Jan 2005 09:39:53 -0800
Have you considered the possibility that some computers don't have network
adapters? Have you considered the possibility that some computers have
multiple adapters? What if the adapter gets changed; then thy must get a new
license and can't use the software until that is done, correct?
Correspondingly, IP addresses often change, right?
Of those samples Randy referred to, the WMI are definitely worth looking at.
Once you know about WMI, you have access to nearly everything there is to
know about a system. The TechNet Script Center is another good place to look
for WMI samples.
http://www.microsoft.com/technet/scriptcenter/default.mspx
Look there for the "Ipconfig.vbs" sample; I am not sure where it is, but I
think it is part of a tutorial. It does much more than what you need, and is
very interesting.
"Joseph Geretz" <jgeretz@nospam.com> wrote in message
news:eT%23m8748EHA.1228@tk2msftngp13.phx.gbl...
> I'm working on a licensing subsystem. In order to do this I need some way
> to lock a license to the computer it is issued to. I've decided to use the
> MAC Address of the machine's network card as a unique computer ID. (I know
> this may not be absolute, but it's close enough and seems to be an
> industry standard.) I'd like also to be able to issue a license remotely,
> that is be logged on to one machine on the network and issue licenses to
> various workstations from a single session. I'd like the user to be able
> to identify workstations by name or by IP and then have the software
> derive the MAC address for the specified workstation. Is this something
> which is possible?
>
> Is the MAC address visible to a remote client?
> If not, is the MAC address at least visible locally?
>
> If it is not possible to get at the MAC Address, then I guess perhaps I
> could use the combination of Computer Name + IP Address as my unique
> identifier. In this case I'd just need to be able to translate a Computer
> Name to IP Address and vice versa.
>
> Thanks for your help,
>
> - Joe Geretz -
>
- Next message: HKSHK: "ConvertStringSidToSid Problem (VB)"
- Previous message: Mike D Sutton: "Re: how to handle a class object's data set?"
- In reply to: Joseph Geretz: "How do I translate Computer Name to MAC Address?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|