Author Topic: Change the permission of a Registry Key  (Read 1890 times)

0 Members and 1 Guest are viewing this topic.

rajat_mallick

  • Guest
Change the permission of a Registry Key
« on: March 25, 2006, 10:55:51 AM »
Hi !

I want to change the permission (Full control / Read / Special permissions) of a registry key in "HKEY_LOCAL_MACHINE\SOFTWARE\..." by using Visual LISP. But how ??

Any help would be greatly appreciated.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Change the permission of a Registry Key
« Reply #1 on: March 25, 2006, 04:27:51 PM »
If you change it manually with regedit.exe, what values do you change/add ?
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

rajat_mallick

  • Guest
Re: Change the permission of a Registry Key
« Reply #2 on: March 25, 2006, 11:13:48 PM »
Normally, in the restricted / Limited type user account, you cannot change a registry key's value which is located in "HKEY_LOCAL_MACHINE\SOFTWARE\...".

To do this, you have to change the permission of that key manually from the administrative type user account.

in the registry editor, Select a key and right click -> "permissions..." -> "select group or user name" and then allow permissions like Full control, Read or special permissions (in windows XP os).

But I want to do this by using Visual Lisp.

I have found some help on msdn but couldn't able to incorporate in Visual Lisp.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemsecuritypermissionsregistrypermissionaccessclasstopic.asp

Thanks
-Rajat
« Last Edit: March 26, 2006, 03:46:49 AM by rajat_mallick »