SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Windows 7

Take Ownership.reg

(3 posts)
  • Started 4 years ago by MrJinje
  • Latest reply from MrJinje
  • Topic Viewed 7213 times

MrJinje
MrJinje
Posts: 4

From MrJinje:

In regard to this.

http://www.howtogeek.com/howto.....-in-vista/

Current attachment is english locale only. Made re-write for some multi-lingual friends using Well Known SID, just thought would share with you. If possible please update your Page, you are the #1 rank google hit for TakeOwnership, number #1 should mean the best, right ?

Quoted from MagicAndre at MSFN.org

http://www.msfn.org/board/take.....39719.html

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.

My version avoids using the localized names for the groups

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant *S-1-5-32-544:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant *S-1-5-32-544:F"

[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant *S-1-5-32-544:F /t"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant *S-1-5-32-544:F /t"

Posted 4 years ago
Top
 
thegeek
The Geek
Posts: 2059

In general, it's very difficult for us to provide multi-language versions of registry hack files. That's why we also usually explain how they work (in this case we didn't).

Posted 4 years ago
Top
 
MrJinje
MrJinje
Posts: 4

No worries Geek, but for the future geeks, here is a link to a list of Well Known SID's.

http://support.microsoft.com/kb/243330

Posted 4 years ago
Top
 



Topic Closed

This topic has been closed to new replies.