LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

¿is it possible to know the hard disk serial number?

For security purposes of an application, I need to know if it is possible to get the hard disk serial number of my PC using LabVIEW.
can any body help me?
0 Kudos
Message 1 of 14
(6,016 Views)
AJJR;

On Windows, make a call to kernel32.dll to the function GetVolumeInformationA.

I am attaching a nice VI that does that. I don't know who wrote it, so I don't know who the honors belong to.

Regards;
Enrique
www.vartortech.com
Message 2 of 14
(6,004 Views)
Beautiful VI, I Appreciate your Hel Enrique
0 Kudos
Message 3 of 14
(5,989 Views)
Hi there,

the revision history of the vi says

"rev. 4 Mi, 2. Dez 1998 01:53:04 Pseudo
Released
Shaun Rumbell
1/12/98"


🙂

best regards
chris
Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 4 of 14
(5,982 Views)
the above VI returns the volume serial #, and not the harddisk its own physical one. Everytime the drive is formatted a new volume number will be given.

Sometimes companies using disk imaging or duplication tools to deploys hundres of PC or laptops, well, all of them will have the same volume serial number!

A lot of times I also use the MAC address of the ethernet for security. It is a lot stable than the volume serial # and are unique on each pc (supposely).

-Joe
Message 5 of 14
(5,963 Views)

Hi,

I've found all the VI's that returns information about any volume, but, as remarked in the previous answer the number isn't the HDD serila number, or cd-rom serial number.

As I'd like to protect my application, can anybody tell me what's the best solution to identify the support used and if available send me an example VI of the solution (MAC, HDD id, etc.)?

Thank you in advance

Bim

0 Kudos
Message 6 of 14
(5,789 Views)
Hi Bim,

There are a couple of threads describing how to get the MAC address of your computer using the "ipconfig /all" command. There is even an example VI that shows how to get the MAC address of computers on the network:

Obtaining the MAC Address (Physical Address) of Any Computer on Your Local Subnet

I have extracted the important part of the example so it only returns the MAC address of your computer. This is how you would do it:



Try it and verify that the address is the same as when you manually run the "ipconfig /all" command in the Command Prompt.

Have fun!

Message Edited by Philip C. on 11-03-2005 07:55 PM

- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
Message 7 of 14
(5,765 Views)
Thank you Philip,
I've thought about this solution that seems quite easy to program, but discussing this solution with collegues a lot of them told me that it's also quite easy to spy the behaviour of the protection, see that ipconfig is called,
0 Kudos
Message 8 of 14
(5,743 Views)
Thank you Philip,
I've thought about this solution that seems quite easy to program, but discussing this solution with collegues a lot of them told me that it's also quite easy to spy the behaviour of the protection, see that ipconfig is called and
0 Kudos
Message 9 of 14
(5,743 Views)
Thank you Philip,
I've thought about this solution that seems quite easy to program, but discussing this solution with collegues a lot of them told me that it's also quite easy to spy the behaviour of the protection, see that ipconfig is called and replace
0 Kudos
Message 10 of 14
(5,744 Views)