[SOLVED] readstring registry function
Published: April 3, 2025 - 11:01 AM
Good morning,
I'm having trouble accessing a specific registry:
Are you able to run this command?
I always get an empty result.
The command does work on the top tree, for example
Similarly, if I use reg_key_exists, the function has a specific return value:
Returns True
but
Returns
Any idea why this behavior occurs?
THANKS !
Good day,
I'm having trouble accessing a specific registry:
Are you able to run this command?
Code: Select all
registry_readstring(HKEY_LOCAL_MACHINE, 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Group Policy\\State\\Machine\\Scripts\\Shutdown\\0\\0','Script')The command does work on the top tree, for example
Code: Select all
registry_readstring(HKEY_LOCAL_MACHINE, 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Group Policy\\State\\Machine\\Scripts\\Shutdown\\0','DisplayName')Code: Select all
reg_key_exists(HKEY_LOCAL_MACHINE, 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Group Policy\\State\\Machine\\Scripts\\Shutdown\\0')but
Code: Select all
reg_key_exists(HKEY_LOCAL_MACHINE, 'SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Group Policy\\State\\Machine\\Scripts\\Shutdown\\0\\0')Code: Select all
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "C:\Program Files (x86)\wapt\waptutils.py", line 2786, in reg_key_exists
with reg_openkey_noredir(rootkey, subkeypath):
AttributeError: __enter__THANKS !
Good day,