"How to open a CMD prompt with TrustedInstaller permissions"
Scroll to page 2, post 29, to see.
Here below is my original message about taking the registry "back" from TrustedInstaller (there is a batch file below to do that, too).
---------------------ORIG MSG---------------------
This is a question about SetACL syntax but since it applies to TrustedInstaller I thought that the Win 7 forum will get greater exposure.
It's also a mini-how to that will help a lot of you who loathe TrustedInstaller.
Below you will find three commands that when executed in order, will strip a given key of TrustedInstaller.
In order, number one makes Administrators the owner, number two assigns and propagates permissions for Administrators on the key and children, number three revokes TI permissions on the key.
Here's the problem I have: I want to be able to:
1. cascade ownership right down through the entire registry from the root HKCR, HKCU etc etc etc keys
2. strip TI permissions from everything in the entire registry from the root HKCR, HKCU etc etc etc right down to every endpoint key
I know there is a -rec yes option to recurse. Won't help scrub the entire registry though.
setaclx64.exe -on "HKCR\CLSID\{CLSID VALUE}" -ot reg -actn setowner -ownr "n:S-1-5-32-544;s:y"
setaclx64.exe -on "HKCR\CLSID\{CLSID VALUE}" -ot reg -actn ace -ace "n:S-1-5-32-544;p:full;s:y;i:so,sc;m:set;w:dacl"
setaclx64.exe -on "HKCR\CLSID\{CLSID VALUE}" -ot reg -actn ace -ace "n:S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464;p:full;s:y;i:so,sc;m:revoke;w:dacl"
for {CLSID VALUE} put something like {a86ca2f1-af74-4a74-980b-e185d4ca01b0}
Any ideas?
Edit: I always edit my posts, and this one is no different.
You must do this with an elevated command prompt.
Also, FYI for everyone, the following files have the TI SID in them:
bcdboot.exe
bfsvc.exe
COMPONENTS
setupapi.dll
winlogon.exe
winsetup.dll
wpd_ci.dll
If you really wanted to render TI powerless you could load them up in a hex editor and change one digit of the SID or change it to admins(S-1-5-32-544) and pad out the rest of the string with 90 (noop). I haven't tried this yet.
This post has been edited by dencorso: 23 May 2012 - 10:26 PM



Help
Back to top












