Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Registry permission to a group

Praveen,

                After my 2hrs research following are my 2 cents thought, please have a look on it.

  1. To edit registry u need to have Admin privilege for tour account.
  2. You can give certain permission to a specific User group from your admin account.
  3. If your in non – admin user u can install/run the application using “RunAs” tools

Like runas /user:Administrator regedit.

4.       The “cacls.exe” program is useful for resetting file permissions from the command line.

Like runas /user:Administrator "cacls.exe directory /t /e /g domain\username:w"

  1. for  post registration

Post-Build Registration Type

Registration Action

COM Executable registration

output.exe /RegServer

COM DLL registration

regsvr32 output.dll

.NET assembly registration for COM interoperability

regasm output.dll

Installation of a .NET assembly into the Global Assembly Cache

gacutil /if output.dll

.NET Services installation registration

regsvcs output.dll

 

 

Some useful link

Developing Software in Visual Studio .NET with Non-Administrative Privileges

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/tchDevelopingSoftwareInVisualStudioNETWithNon-AdministrativePrivileges.asp

 

Secure Coding Guidelines for the .NET Framework

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/seccodeguide.asp

 

All About Registry

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/registry_key_security_and_access_rights.asp

 

  

 

Fig : Permission to specific group

 

Hope this help u to find ur solution.

 

Thanks and regards,

 

Suresh

[Microsoft MVP | MCAD.NET(CM) | MCSD.NET(CM)]

 

 

 

 

 

 

----------------------------------------------------------------------------------------------------

Suresh,

 

 

  I am building one Setup programme for windows application. in this process I have to give registry permission( Read ) to a user group. how can I give registry permission to a windows user group which does not have any administrative privileges  on registry.

 

 

 

 

 

Thanks & Regard's

Praveen Kella

No Comments