win32.getRegistry()
Posted: Thu Mar 08, 2018 2:19 am
I'm trying to read a value from the registry, specifically the "MachineGuid" value for the purpose of locking the indicator to a user's machine.
The code I'm using is as follows:
but "value" always returns 'nil'. I have confirmed the value exists via RegEdit.
Can someone confirm that this function still works? Has anyone tried it on Windows 10?
Perhaps there is a permissions issue?
The code I'm using is as follows:
- Code: Select all
local value = win32.getRegistry("HKLM SOFTWARE\\Microsoft\\Cryptography", "MachineGuid");
but "value" always returns 'nil'. I have confirmed the value exists via RegEdit.
Can someone confirm that this function still works? Has anyone tried it on Windows 10?
Perhaps there is a permissions issue?