Jump to content

TakeOwnership / Windows 7 / TrustedInstaller Issues


MrJinje

Recommended Posts

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

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 by MrJinje
Link to comment
Share on other sites


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=&amp...st&p=667868

This will work for all languages.

Link to comment
Share on other sites

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

Server Error

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

  • 3 years later...

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 by MrJinje
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...