Re: Changing Registry ACL (need some more help)
From: mostro (mostro_at_adelphia.net)
Date: 01/12/05
- Next message: Peter: "Re: output to test file/command window"
- Previous message: fred: "Re: output to test file/command window"
- Next in thread: Gerry Hickman: "Re: Changing Registry ACL (need some more help)"
- Reply: Gerry Hickman: "Re: Changing Registry ACL (need some more help)"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 12 Jan 2005 09:55:38 -0500
Well, I tried SetACL.exe and I can't get in to the users registry. This is
the issue. The user has admin rights to his/her computer and has removed the
domain admin and administrators groups from the registry (HKLM, HKU). Yes, I
can go logonto the computer and remove the ACL on the registry key. Yes, I
have full power to even scold the user and issue a formal warning to make
them set the perms back. But, this isn't any fun. It's like playing chess
and it's my move. I want to do it using the resources available and behind
the scenes. Anyway, I have tried using Setacl using the following command.
I tried this first using a login script. Testing it on my machine (login
script from the domain) and it works. The same login script from then pushed
out to the user doesn't work. Probably because of the rights.
\\server\openshare\SetACL.exe -on "hklm" -ot reg -actn ace -ace
"n:domain\myuser;p:full"
\\server\openshare\SetACL.exe -on "hku" -ot reg -actn ace -ace
"n:domain\myuser;p:full"
I then threw the executible in the users local windows directory and put a
batch file containing the below information in the start up folder (hidden).
Still no go. Again, because I don't have rights to the reg key.
c:\windows\SetACL.exe -on "hklm" -ot reg -actn ace -ace
"n:domain\myuser;p:full"
c:\windows\SetACL.exe -on "hku" -ot reg -actn ace -ace
"n:domain\myuser;p:full"
Any ideas?
Thanks
"Mostro" <mostro@adelphia.netnospam> wrote in message
news:u2OaN0E1EHA.1968@tk2msftngp13.phx.gbl...
> Thanks I will give it a read....
>
>
> "Torgeir Bakken (MVP)" <Torgeir.Bakken-spam@hydro.com> wrote in message
> news:%23$tJF8x0EHA.1028@TK2MSFTNGP10.phx.gbl...
>> Mostro wrote:
>>
>>> Is there a way to change the the ACL on a registry key using WSH?
>>>
>>> Thanks
>> Hi
>>
>> If WinXP or Win2k3, using the IADsSecurityUtility object
>> is an option.
>>
>> IADsSecurityUtility
>> http://msdn.microsoft.com/library/en-us/adsi/adsi/iadssecurityutility.asp
>>
>>
>> Command line (Win2k and up):
>>
>> Regini.exe or SetACL.exe is an option:
>>
>> http://groups.google.com/groups?selm=400CA361.8E02C9C2%40hydro.com
>>
>> SubInACL.exe can also be used for this, a new, bug-fixed version of
>> SubInACL.exe is available for download here (Win2k/WinXP/Win2k3):
>>
>> http://www.microsoft.com/downloads/details.aspx?FamilyID=e8ba3e56-d8fe-4a91-93cf-ed6985e3927b
>>
>>
>>
>>
>>
>>
>>
>> --
>> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
>> Administration scripting examples and an ONLINE version of
>> the 1328 page Scripting Guide:
>> http://www.microsoft.com/technet/scriptcenter/default.mspx
>
>
- Next message: Peter: "Re: output to test file/command window"
- Previous message: fred: "Re: output to test file/command window"
- Next in thread: Gerry Hickman: "Re: Changing Registry ACL (need some more help)"
- Reply: Gerry Hickman: "Re: Changing Registry ACL (need some more help)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|