473,385 Members | 1,356 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,385 software developers and data experts.

Need to set permissions on registry keys.

DJP
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 WMI but the only one of these that goes
any where near registry permissions is WMI and that is only to get the
permissions of a key (cannot set). I am also quite happy for the code to
call an external program to perform the task but can't seem to find anything
that will do the job.

The fact that regedt32 can set permissions on registry keys, and that the OS
enforces these permissions whenever anything accesses the registry,
indicates to me that there must be some sort of programming methodology
available.

Can anyone please point me in the right direction?

Thanks in advance
David
Aug 17 '05 #1
0 7675

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

Similar topics

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...
2
by: LCD | last post by:
Here is what I want to do: Presently in my registry I have: (Default) = "C:\Program Files\myApp" and this value is scattered all over registry in several keys and subkeys. I wouldlike to...
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...
1
by: Paul Remblance | last post by:
The following code fails due to security: Dim regKey As RegistryKey Dim strEvent As String Dim index As Integer Dim f As New RegistryPermission(RegistryPermissionAccess.AllAccess,...
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...
1
by: Jason Richmeier | last post by:
I am attempting to set permissions on a set of registry keys on a remote computer. I am able to open the registry key on the remote computer and read values from it. However, when I call the...
0
by: Burns168 | last post by:
Hi all, I have an app that needs to set the NTFS Permissions on registry keys that the app creates and uses. I have searched the web and found a few examples but none seem to work. I have found...
11
by: Unknown Hero | last post by:
Tim Golden wrote: The first link which points to the Python documentation for the _winreg module I already checked, even before coming here. I am wondering how I should do the loop I need (go...
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: 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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.