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

Registry ACLs

My appologies if this shows twice (I forgot to include a subject the first
time)

I'm looking for a way to obtain the ACL for a specific registry key. What I
need is something that works in a similar way to the following for file ACLs

Set wmiSecuritySettings = wmiServices.Get
("Win32_LogicalFileSecuritySetting.Path='" & fname & "'")
intRetVal =
wmiSecuritySettings.GetSecurityDescriptor(wmiSecur ityDescriptor)

Any suggestions other than using the ADsSecurity.DLL (which is not shipped
with WinXP)? I cannot install any SW on the box where this will be running.
Feb 12 '07 #1
1 1470
either

a) keep your data in a database and not the registry
or
b) dotnet is too verbose; your IDE is expecting more verbosity... I
would reccomend just adding a whole assload of more code in it and see
if it works then


On Feb 12, 2:01 pm, "Jose Cintron" <l0rddarkf0...@hotmail.comwrote:
My appologies if this shows twice (I forgot to include a subject the first
time)

I'm looking for a way to obtain the ACL for a specific registry key. What I
need is something that works in a similar way to the following for file ACLs

Set wmiSecuritySettings = wmiServices.Get
("Win32_LogicalFileSecuritySetting.Path='" & fname & "'")
intRetVal =
wmiSecuritySettings.GetSecurityDescriptor(wmiSecur ityDescriptor)

Any suggestions other than using the ADsSecurity.DLL (which is not shipped
with WinXP)? I cannot install any SW on the box where this will be running.

Feb 14 '07 #2

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

Similar topics

5
by: Daniel Cayouette | last post by:
in C# is there a managed code example to set ACLs on a folder. We're currently using the win32api and would like to migrate this functionality to managed code in C#
1
by: Peter Rilling | last post by:
How can I pass credentials along with a file access request. When a person uses an application, it uses their credentials when accessing resources. Now, what if the user wants to use the...
3
by: Dmitriy Kolesnik | last post by:
Hello all! I have problem with reading data from registry. I work on the one machine. My operation system is Windows XP SP2. I read data from registry with help OpenSubKey and SecurityException...
0
by: Sherwood | last post by:
My current scenario is users logging in to our website and being directed to a specific directory based on who they are. The ACLs on the destination result in prompts for credentials (the windows...
0
by: Marcus Dano | last post by:
Hi, I want to read all ACLs from a single folder in my NTFS partition. I'am using following code: Dim dir As DirectoryInfo = New DirectoryInfo("C:\demo") Dim sec As DirectorySecurity =...
0
by: Curt K | last post by:
We run some web services (IIS 5 and IIS 6) that communicate to a COM out of process server, which in turn communicates to another out of process COM server (long story). We have had lots of...
5
by: dananrg | last post by:
Is there a standard library module in Python 2.4 (Win32) that will return directory permissions / ACLs (e.g. users, groups, and what rights they have)? Otherwise, I'm faced with sending "cacls...
2
by: Jose Cintron | last post by:
I'm looking for a way to obtain the ACL for a specific registry key. For example if I want the permissions of HKLM\SOFTWARE\Microsoft I would get something like Administrators Full Control...
1
by: =?Utf-8?B?Q2hyaXN0aWFuIGZyb20gRnJhbmNl?= | last post by:
I want to do the folllowing in C# : I have a DirectoryEntry : DirectoryEntry usr = new DirectoryEntry("LDAP://cn=Mike,ou=Users,dc=MyDc"); With "AD Users & Computers" Security tab an...
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: 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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.