Re: Changing Registry ACL (need some more help)

From: mostro (mostro_at_adelphia.net)
Date: 01/12/05


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
>
>



Relevant Pages

  • Re: Script in GPO
    ... What is a good way to remove all of these dead printers from the registry. ... This posting is provided "AS IS" with no warranties, and confers no rights. ... I changed the script back to match it, we would then have the same issue ... old printer and flash's up a connection error message stating that the ...
    (microsoft.public.win2000.active_directory)
  • Re: RegWrite error
    ... > the same rights to the registry. ... If this script is run under the users security credentials, ... I see you say something about group policy and all have the same ... under the system context and has admin rights. ...
    (microsoft.public.scripting.vbscript)
  • Re: ScreenSaverGracePeriod
    ... Because the regkey correspondents to HK LOCAL MACHINE run it as a startup script not as a logon script. ... The user will have no rights to modify the registry. ... This posting is provided "AS IS" with no warranties, and confers no rights. ... I created a bat file and a registry file and and set it all up ...
    (microsoft.public.windows.server.active_directory)
  • Re: Tool for assinging users to be Admins for ONLY that app?
    ... It is not a matter of giving users administrator rights but a matter of giving users ... the needed file and registry permissions to run the application. ... permissions need to be modified in order for a user to run their application. ... > We cannot have these accounts have admin rights. ...
    (microsoft.public.win2000.security)
  • Re: Unable to map drive under Taskmanager
    ... The script works when ... > under a user with Administrative rights. ... Local Admin rights or admin rights ... on the remote machine as well? ...
    (microsoft.public.win2000.networking)