Set Registry Permission

  • Thread starter Thread starter kiros
  • Start date Start date
K

kiros

Hi
I want to let the User(limitted User) can access some registry key
or set registry value. I can use regedit.exe and right click the registry key
to set permission manually and let User can access it.
But now i want to do that automatically.
Is there any command line can do that?

Thanks
Kiros
 
Dear kiros,

If you can set registry key manully, you can write an application to do
this work.

And put this application in runonce field.


You can search "Adding a Source to the Registry" in MSDN and find an
example.


Best Regards,
Bing Chen
2004.06.07
 
Thanks, Bing Chen.
But i don't see any message about "set registry permission" in that
example.
Because i want to access the registry key, but it only can be access
by
"Administrator" or "Power User". A limitted User can't access it.
I must use regedit.exe to see it and right click it to set permission
manually and let "limitted User" can access it. That is very
inconvenient.
So i think is there any way or command line can set registry
permission.
If it can be done, i can make a new component with a batch file to
execute automatically.

Thanks
Kiros
 
Dear kiros,

Search this two functions in MSDN
RegCreateKey
RegSetValueEx


But you say that " I must use regedit.exe to see it and right click it
to set permission
manually and let "limitted User" can access it."

What account you use to do this action, Administrator or Limited User?

If you can do this action in Limited User, the program can work fine.


Best Regards,
Bing Chen
2004.06.07
 
Hi Bing.Che

I use regedit.exe with administrator. Because "limitted User" can't change the permission
I found the "regini.exe" command that can set registry permission
But there is no "User" permission can be set. So i still find the answer

Thanks
Kiro


----- Bing.Chen wrote: ----

Dear kiros

Search this two functions in MSD
RegCreateKe
RegSetValueE


But you say that " I must use regedit.exe to see it and right click i
to set permissio
manually and let "limitted User" can access it.

What account you use to do this action, Administrator or Limited User

If you can do this action in Limited User, the program can work fine


Best Regards
Bing Che
2004.06.0
 
Back
Top