Jump to content
Sign in to follow this  
Sparrowlord

DriveGetSerial()

Recommended Posts

Sparrowlord

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.

Share this post


Link to post
Share on other sites
GEOSoft

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!"

Share this post


Link to post
Share on other sites
Sparrowlord

What would be the way to identify a computer then? Is there anything that I can check that would be unique?

Share this post


Link to post
Share on other sites
xXUlTiMaTeSiNXx

The ip address? thats uniqe.


I'm new to AutoIT, please help me where you can.[size=10]Profanity is the one language that all programmers understand[/size]

Share this post


Link to post
Share on other sites
Sparrowlord

The ip address? thats uniqe.

Yes, however the person I'm giving the script to has a brother with the same ip address. I'm trying to restrict it to one computer..

Share this post


Link to post
Share on other sites
xXUlTiMaTeSiNXx

@computername & @ipaddress1

or whatever the variable for ip adress is.


I'm new to AutoIT, please help me where you can.[size=10]Profanity is the one language that all programmers understand[/size]

Share this post


Link to post
Share on other sites
GEOSoft

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!"

Share this post


Link to post
Share on other sites
WideBoyDixon

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

Share this post


Link to post
Share on other sites
LurchMan

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.

Share this post


Link to post
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
Sign in to follow this  

×