|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
windows 7 HardwareIDby TomKane (Beadle) |
| on Nov 19, 2011 at 21:54 UTC ( #939006=perlquestion: print w/ replies, xml ) | Need Help?? |
|
TomKane has asked for the
wisdom of the Perl Monks concerning the following question:
I am trying to find a unique windows value that I can use for basing a product key on. I have been fetching the machine ID on XP and Vista from the registry and that works fine. However, I've just been working with Windows 7 und alles kaput.
The following works fine with XP and Vista:
But on Windows 7, $Machine is undefined. I've tried every conceivable permutation that I can imagine ... and then some. Even running that snippet as an administrator. I can get and set values under HKEY_CURRENT_USER in Win7 fine. I just can't pull in values from HKEY_LOCAL_MACHINE. It sorta looks like I need to brush up on the Win7 administration of rights and privileges. Any suggestions on what I need to be looking into would be welcome. Maybe my goal is wrong. Does anyone know of any other unique identifier for Windows machines? Thanks.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||