MrJinje Posted November 16, 2009 Share Posted November 16, 2009 (edited) How come TakeOwnership reg hack is not working for everyone. It works for some, but many readers reporting it doesn't work for them at all Why would some users have no problem taking ownership of TrustedInstaller files but others report they can't do it with the reg-hack, or manually from an Elevated Command prompt. Since we know the reg-hack runs elevated this can't be a user mistake or command line typo, it's gotta be a settings issue. Any ideas. Currently have Defender and UAC disabled, (via vLite tweak) maybe that is why it works for me, anyone currently having problems want to test this for us and report back. Edited November 16, 2009 by MrJinje Link to comment Share on other sites More sharing options...
MagicAndre1981 Posted November 16, 2009 Share Posted November 16, 2009 The takeown /grant command uses localized names for the groups. On an English windows it is administrators. On a German Windows the name of the group administrators is Administratoren. Use the following fix I've submitted to XPero's tool "TakeControl":http://www.msfn.org/board/index.php?s=&...st&p=667868This will work for all languages. Link to comment Share on other sites More sharing options...
MrJinje Posted November 16, 2009 Author Share Posted November 16, 2009 (edited) If language is the problem, this is easy fix. Maybe I can Re-write it multi-lingual using the Well Known SID. Let me get someone to test it for me, and I will post it back here.takeown_multilingual.reg Edited November 16, 2009 by MrJinje Link to comment Share on other sites More sharing options...
MagicAndre1981 Posted November 16, 2009 Share Posted November 16, 2009 my fix works. It is included in the Tool from XPero. You can use it and it will work. Link to comment Share on other sites More sharing options...
MrJinje Posted November 16, 2009 Author Share Posted November 16, 2009 my fix works. It is included in the Tool from XPero. You can use it and it will work.Sorry, Xpero's links were dead, never saw it. No worries, once you mentioned it was language issue, I knew the answer straight away.http://www.xpize.net/downloads/takecontrol/TakeControlb2.zipServer Error404 - File or directory not found.The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.For future reader's use this reference to create your own multi-lingual safe batch scripts.http://support.microsoft.com/kb/243330 Link to comment Share on other sites More sharing options...
MrJinje Posted September 29, 2013 Author Share Posted September 29, 2013 (edited) and here is the reverse setting, forcing ownership back to TrustedInstaller language independently. Useful if you have taken ownership of a system file and have some unknown reason to set it back.Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\*\shell\runas]@="Force Ownership""NoWorkingDirectory"=""[HKEY_CLASSES_ROOT\*\shell\runas\command]@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant *S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464:F""IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant *S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464:F"[HKEY_CLASSES_ROOT\Directory\shell\runas]@="Force Ownership""NoWorkingDirectory"=""[HKEY_CLASSES_ROOT\Directory\shell\runas\command]@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant *S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464:F /t""IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant *S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464:F /t"forceownership_trustedinstaller.reg Edited September 29, 2013 by MrJinje Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now