kessler / node-regedit

Read, Write, List and do all sorts of funky stuff to the windows registry using node.js and windows script host
MIT License
279 stars 45 forks source link

Altering HKLM hive values is not working if not administrator #49

Closed anaszgh closed 3 weeks ago

anaszgh commented 6 years ago

its a known thing that for modifying any key's value under HKLM you need a privileged user (Administrator), when trying to put a value which is under HKLM hive, the change will not be saved on the registry, yet the code will complete the process without any errors indicating that the operation succeeded.

Also note that the test defined in the project's source doesn't check the lack of permission for editing values under HKLM.

kessler commented 6 years ago

@anaszgh Thanks for the input! It will be really great if you can submit a PR to correct this, or even some sketch code.