Solved

Re: Set Permission in Windows Registry

Posted on 2007-03-28
4
215 Views
Last Modified: 2010-04-16
Hi Experts
is it possible to use vbscript to pemit "Everyone" to "Full Access" and "Read" Access to[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared\Tools] registry key? besides using subinacl.exe...
Thanks inadvance....
0
Comment
Question by:Manfredtoo
  • 2
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 18808691
Yes, that is possible - see http://support.microsoft.com/kb/316440 ("How to use low-level access control APIs from Visual Basic") and the sample code it comes with at http://download.microsoft.com/download/wbt/sample/2.0/nt45xp/en-us/setperm.exe ("SetPerm.exe")
0
 
LVL 6

Expert Comment

by:kane77573
ID: 18810217
yes
do start
run
regedt32
this is the same as regedit except you can modify permissions and rights
0
 
LVL 86

Expert Comment

by:jkr
ID: 18819207
>>run
>>regedt32

How do you do that from code?
0
 
LVL 6

Expert Comment

by:kane77573
ID: 18819234
Didnt see it being code, read to fast.
Missed a part
oops!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Over the years I have built up my own little library of code snippets that I refer to when programming or writing a script.  Many of these have come from the web or adaptations from snippets I find on the Web.  Periodically I add to them when I come…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now