LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hard Drive and NIC Serial #/ID

How can a LabVIEW program get a hard drive and/or NIC serial number/ID in
Windows?

I'd like to programmatically get this information to provide an "unlock"
code for software that has been paid for.


0 Kudos
Message 1 of 7
(5,027 Views)
one thing you can do to get the nic card mac address is to use the system exec.vi and execute ipconfig /all and parse the output to get the mac address
0 Kudos
Message 2 of 7
(5,022 Views)
Thanks,

I also found a VI that calls Kernel32.dll to get volume information. See:
http://forums.lavausergroup.org/index.php?showtopic=59&mode=linear

"dan bookwalter" <x@no.email> wrote in message
news:203789@exchange.ni.com...
> one thing you can do to get the nic card mac address is to use the system
> exec.vi and execute ipconfig /all and parse the output to get the mac
> address


0 Kudos
Message 3 of 7
(5,014 Views)
Now that I am able to read the hard drive serial number and convert it to a
32 bit integer I was wondering what a good encryption routine would be to
perform on this number to create a passcode. I've come up with various bit
shifting routines that may work OK but I'm sure there are much better
routines out there that would be harder to crack. Can anyone recomend one?


0 Kudos
Message 4 of 7
(4,998 Views)
nealpederson, I have short question.
You wrote: "Now that I am able to read the hard drive serial number..."
Did you get Volume Serial Number or Hard Drive Serial Number? There are two different things. Volume Serial Number can be easy obtained and changed (and as far as I know it changed with every format). But obtaining physical Hard Drive serial number not so easy...

Andrey.
Message 5 of 7
(4,983 Views)
It is the volume serial number. Is this something that can be changed in
the registry?

"Andrey Dmitriev" <x@no.email> wrote in message
news:206760@exchange.ni.com...
> nealpederson, I have short question.<br>You wrote: <i>"Now that I am able
> to read the hard drive serial number..."</i><br>Did you get <b>Volume</b>
> Serial Number or <b>Hard Drive</b> Serial Number? There are two different
> things. Volume Serial Number can be easy obtained and changed (and as far
> as I know it changed with every format). But obtaining physical Hard Drive
> serial number not so easy...<br><br>Andrey.


0 Kudos
Message 6 of 7
(4,960 Views)
Yes, Volume Serial Number can be changed.
Not in Registry, but

Changing volume's serial number

Google: how to change volume serial number volume's serial number

and so on...
0 Kudos
Message 7 of 7
(4,956 Views)