Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Take Ownership Shortcut

15 Jun 2010   #90
ebarn

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by squall leonhart View Post
hmm, you're right, run as admin is broken D:

but i know i had a self elevating take ownership item that worked fine with the run as admin command not so long ago.

seems to be because it replaces the run as key for exe's.

i recommend removal of take ownership over exe files?

Code:
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\*\shell\runas]

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

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

[-HKEY_CLASSES_ROOT\Directory\shell\runas]

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

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

[-HKEY_CLASSES_ROOT\dllfile\shell]

[HKEY_CLASSES_ROOT\dllfile\shell\runas]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\dllfile\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
Lol. I don't know. Just let me know when there is a new version to download that gives back the option to "Run as Administrator"


My System SpecsSystem Spec
.
15 Jun 2010   #91
squall leonhart

Windows 7
 
 

theres no need to give it back, just use the packaged uninstall/removal file and that will restore run as admin.
My System SpecsSystem Spec
15 Jun 2010   #92
ebarn

Windows 7 Ultimate x64
 
 

I guess what I'm trying to say, will it be fixed so that Run as Administrator and Take Ownership appear in the same menu so you have both options?
My System SpecsSystem Spec
15 Jun 2010   #93
squall leonhart

Windows 7
 
 

doesn't seem possible to keep both run as options on exe files.
My System SpecsSystem Spec
.

15 Jun 2010   #94
Brink

64-bit Windows 10 Pro
 
 

Quote   Quote: Originally Posted by ebarn View Post
Lol. I don't know. Just let me know when there is a new version to download that gives back the option to "Run as Administrator"
Okey doke. The add REG download changed to not include "Take Ownership" for EXE files to leave "Run as administrator" instead.
My System SpecsSystem Spec
15 Jun 2010   #95
ebarn

Windows 7 Ultimate x64
 
 

Hmmm... Ok. What if you just Take Ownership and run the file, will that give you the same permissions?
My System SpecsSystem Spec
15 Jun 2010   #96
ebarn

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Brink View Post
Quote   Quote: Originally Posted by ebarn View Post
Lol. I don't know. Just let me know when there is a new version to download that gives back the option to "Run as Administrator"
Okey doke. The add REG download changed to not include "Take Ownership" for EXE files to leave "Run as administrator" instead.
So, what should I do to fix this? Uninstall current and redownload?
My System SpecsSystem Spec
15 Jun 2010   #97
Brink

64-bit Windows 10 Pro
 
 

You can run the Remove reg file to undo your current one and restore "Run as administrator" for exe files, then run the Add reg file for the new version.
My System SpecsSystem Spec
15 Jun 2010   #98
ebarn

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Brink View Post
You can run the Remove reg file to undo your current one and restore "Run as administrator" for exe files, then run the Add reg file for the new version.
Works perfectly. Thanks.
My System SpecsSystem Spec
15 Jun 2010   #99
Brink

64-bit Windows 10 Pro
 
 

You're most welcome.
My System SpecsSystem Spec
Reply

 Take Ownership Shortcut




Thread Tools




Similar help and support threads
Thread Forum
Custom 'Desktop (create shortcut)' Remove .fileextension - Shortcut
Hi guys n girls, I have for ever got sick and tired of right click -> open Send to Menu and creating a Desktop Shortcut for a file or app....then needing to go to the Desktop right click the newly made shortcut and then removing the trailing file extension, dash and words shortcut in brackets....
Customization
Creating a shortcut without - shortcut written after the original name
as the titel declares, is there any patch or something to make Windows 7 shortcuts not rename theirselves to "application.exe - shortcut" but rename theirselves into just "application.exe"? I find it very annoying having to erase " - shortcut" from the name all the time.
General Discussion
Ownership for XP
Dear helpers ,, i am using windows XP and previously i was using win7 it was not properly supported on my pc , i had forbidden some folders for users other than Administrator, how can i get ownership of those folders on XP , i have tried the "Take_Ownership.reg" and followed the procedure it just...
Chillout Room
Cannot take ownership
Hi,im having a problem taking ownership of any of the windows files after a fresh reinstall. It says i have taken ownership (using the command promt in elevated command method + trying to use the right click Take Ownership) but does not allow me to edit any of the files within the windows folder....
BSOD Help and Support
ownership and uac
I have my UAC all the way down and cannot figure how to take ownership of folders. I have a windows.old and a windows.old.000 and I want to delete one of them. Thanks!
General Discussion


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:35.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App