Jump to content

DriveGetSerial()


Recommended Posts

Would this be a good way to identify a computer after an ip verification? I'm looking to only allow a certain computer on a network to use a script of mine, and was wondering if DriveGetSerial() returns a unique value based off the hard-drive in the computer.

Link to comment
Share on other sites

It returns the Volume serial number

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

I use a combination of items

DriveGetSerial() & @ComputerName & @IPAddress1

Remeber that @IPAddress will change if the net card is swapped. DriveGetSerial() is generally pretty safe to use although that serial can be changed with enough effort. It would be nice if we could get the UUID of the computer but a couple of us have looked for a method to do that with no success.

Another method would be to Enum the reg values for hardware but that would change if any major hardware changes were made to the system

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

It would be nice if we could get the UUID of the computer but a couple of us have looked for a method to do that with no success.

But this helps:

http://www.autoitscript.com/forum/index.ph...st&p=678401

WBD

Link to comment
Share on other sites

you could just have the script do a FileInstall() and make a *.dat file with some random entries and bury it in the windows dir somewhere and make the script check for it everytime it starts...not fool proof but if they are scared of the windows dir like most common people are then it should work

Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...