TomKane has asked for the wisdom of the Perl Monks concerning the following question:
The following works fine with XP and Vista:
my $Machine = Win32::TieRegistry->new( "LMachine/Software/Microsoft/MSLicensing/HardwareID", { Access=>"KEY_READ", Delimiter => '/', }, ) ;
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: windows 7 HardwareID
by locked_user sundialsvc4 (Abbot) on Nov 20, 2011 at 13:54 UTC | |
by TomKane (Beadle) on Nov 20, 2011 at 21:21 UTC |