Setting registry permission after aspnet_setreg.

K

Kevin Burton

I am using aspnet_setreg but the permissions that it sets the registry to
leave the application unable to access the information. I want to add the
ASPNET account on the machine that our application is being installed on
with read privilege automatically. Does anyone know of a way to easily set
registry permissions? I would prefer to use .NET (C#) but I can always wrap
any code that does this. I am suspecting that this will involve C++ or
managed C++ as the registry classes within the .NET framework do not seem to
have properties to set permissions. It would be nice if aspnet_setreg had
the ability to set the permissions rather than defaulting to some that in my
case are unusable.

Thank you for your suggestions.

Kevin Burton
 
C

Craig Deelsnyder

Kevin said:
I am using aspnet_setreg but the permissions that it sets the registry to
leave the application unable to access the information. I want to add the
ASPNET account on the machine that our application is being installed on
with read privilege automatically. Does anyone know of a way to easily set
registry permissions? I would prefer to use .NET (C#) but I can always wrap
any code that does this. I am suspecting that this will involve C++ or
managed C++ as the registry classes within the .NET framework do not seem to
have properties to set permissions. It would be nice if aspnet_setreg had
the ability to set the permissions rather than defaulting to some that in my
case are unusable.

Thank you for your suggestions.

Kevin Burton

I usually use the regedt32 command. You can set permissions in that
interface.....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top