change registry key permission with script? 
Author Message
 change registry key permission with script?

hello - you'll have to excuse the fact that i don't know much about
scripting...  :)  i have been trying to find out for a couple of days
whether it is possible to change the permissions on a registry key in
windows nt 4 workstation through the use of a script.  basically, i need to
recursively apply the permissions from key
'HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System Provider\' to
the ones under it (administrator - full control, system - full control), and
then delete that key and the ones under it recursively.  i don't think it is
possible to name the keys underneath the 'Storage System Provider' key
specifically in the script, as they are dependent on the sid of the machine
(or the users who have logged into the machine, i am not quite sure).
please help!  thank you for your time.

wally



Wed, 29 Oct 2003 02:13:00 GMT  
 change registry key permission with script?
hello - you'll have to excuse the fact that i don't know much about
scripting...  :)  i have been trying to find out for a couple of days
whether it is possible to change the permissions on a registry key in
windows nt 4 workstation through the use of a script.  basically, i need to
recursively apply the permissions from key
'HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System Provider\' to
the ones under it (administrator - full control, system - full control), and
then delete that key and the ones under it recursively.  i don't think it is
possible to name the keys underneath the 'Storage System Provider' key
specifically in the script, as they are dependent on the sid of the machine
(or the users who have logged into the machine, i am not quite sure).
please help!  thank you for your time.

wally



Wed, 29 Oct 2003 02:12:01 GMT  
 change registry key permission with script?
You would have to use ADSI -

see
http://msdn.microsoft.com/library/default.asp?URL=/library/psdk/adsi/...
rtpage_7wrp.htm for more information


Quote:
> hello - you'll have to excuse the fact that i don't know much about
> scripting...  :)  i have been trying to find out for a couple of days
> whether it is possible to change the permissions on a registry key in
> windows nt 4 workstation through the use of a script.  basically, i need
to
> recursively apply the permissions from key
> 'HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System Provider\'
to
> the ones under it (administrator - full control, system - full control),
and
> then delete that key and the ones under it recursively.  i don't think it
is
> possible to name the keys underneath the 'Storage System Provider' key
> specifically in the script, as they are dependent on the sid of the
machine
> (or the users who have logged into the machine, i am not quite sure).
> please help!  thank you for your time.

> wally



Fri, 31 Oct 2003 05:31:08 GMT  
 change registry key permission with script?
Not a WSH/Scripting answer, but I find it easier just to use REGINI from the
NT Resource Kit.  Nice tool.


Quote:
> hello - you'll have to excuse the fact that i don't know much about
> scripting...  :)  i have been trying to find out for a couple of days
> whether it is possible to change the permissions on a registry key in
> windows nt 4 workstation through the use of a script.  basically, i need to
> recursively apply the permissions from key
> 'HKEY_CURRENT_USER\Software\Microsoft\Protected Storage System Provider\' to
> the ones under it (administrator - full control, system - full control), and
> then delete that key and the ones under it recursively.  i don't think it is
> possible to name the keys underneath the 'Storage System Provider' key
> specifically in the script, as they are dependent on the sid of the machine
> (or the users who have logged into the machine, i am not quite sure).
> please help!  thank you for your time.

> wally

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----


Fri, 31 Oct 2003 20:45:26 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. change registry key permission with script?

2. change registry key permission with script?

3. change registry key permission with script?

4. Changing Permissions on Registry Keys

5. Changing permissions of Registry key?

6. Change permissions on REGISTRY KEY?

7. registry based scripting to change name based on key's content

8. Changing REGISTRY Permissions via script

9. Registry Key Permission

10. Registry key permissions & VBScript

11. Permission Denied while deleting Registry Keys

12. Modifying Permissions on a Registry Key

 

 
Powered by phpBB® Forum Software