Sign in to follow this  
Followers 0

How to limit my script by Processor ID

4 posts in this topic

Posted

Hi. I wan't to limit my script only to work for my PC. So, as every CPU has a diferent ID No. I guess this could be the solution:

example:

If "CPU-ID" = "my CPU-ID" then
else
exit
EndIf

I searched the help of A3, but haven't found anything related to WMI... :whistle:

therefore I can't find out what is my CPU ID, and what command leads to it...

any suggestion?

Share this post


Link to post
Share on other sites



Posted

Well, if you want to lock your script if it executed on another computer, then you can just Write a Registry entry, and then every time check it, it the value not exists, then exit the script:

$MyCompID = 0x85686790780
$MyCompRead = RegRead("HKEY_CURRENT_USER\Software\MyScript", "MyCompID")
If $MyCompRead <> $MyCompID Then Exit

And write to the registry HKEY_CURRENT_USER\Software\MyScript the value 0x85686790780, so this will be yours comp ID :whistle:

Share this post


Link to post
Share on other sites

Posted

Search the term UUID

Share this post


Link to post
Share on other sites

Posted

Thank you! I made it. :whistle:

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.