473,382 Members | 1,526 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

change permissions in the registry

sgr
Hello All,

How can i do in order to change a permission for an user in a registry key.
How to do it programatically.

Thanks in advance...

Regards,
Nov 7 '06 #1
1 1437
Hi Sgr,
How can i do in order to change a permission for an user in a registry
key.
If you are using .NET 2.0, you can use the new RegistrySecurity class in the
System.Security.AccessControl namespace:

http://msdn2.microsoft.com/en-us/lib...ysecurity.aspx

See the example given in the above page, it should get you going.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Nov 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: DJP | last post by:
Hi there I need to be able to programmatically set permissions on registry keys using VB / VBScript / VBA. So far I have had a look at doing this using the WScript.Shell object, API calls, and...
5
by: Sean McKaharay | last post by:
I am wondering if anyone can help me out with this one. Here goes....... I have my local machine (Windows XP framework 1.1) and a Server (Windows 2003 framework 1.1). When I go to run my code on my...
4
by: radrain | last post by:
I need to programmatically get the list of users and/or groups related to a specific registry keys permissions. I have successfully access key values from the registry but I need a way to,...
9
by: Ben Dewey | last post by:
Project: ---------------------------- I am creating a HTTPS File Transfer App using ASP.NET and C#. I am utilizing ActiveDirectory and windows security to manage the permissions. Why reinvent...
4
by: Kevin L | last post by:
I store some application settings in the registry under HKEY_LOCAL_MACHINE\Software\MyApplication I want to allow full access to this key and subkeys. Currently, I manually change the...
5
by: iwdu15 | last post by:
hi, i sent one of my program to a friend and my program uses the registry to store values and such that my program needs but he cant run it because he isnt allowed access to the registry....is...
2
by: scorpion53061 | last post by:
hi all, I thought I would give this back and see if anyone could improve on it. I was working with the remote registry class. This code opens the ScreenSaverIsSecure registry setting and changes...
5
by: =?Utf-8?B?Um9nZXI=?= | last post by:
Hello ! My question is simple: How can I change ALL THE PCS ON A DOMAIN to have CAS full trust to a network share ? Notes: When you deploy an application to a network share, as all the...
6
tlhintoq
by: tlhintoq | last post by:
I pride myself on being able to Google just about anything but... I have fought, tried, searched and fought some more on this one. I am using VMware, and am able to debug from Visual Studio to...
6
vavc1980
by: vavc1980 | last post by:
I coded a windows service in Visual Studio 2005, I have the installer with it. The registry keys for the service are created in System\controlset001\MyService. The service is installed with...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.