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

17 May 2010   #80
Brink

64-bit Windows 10 Pro
 
 

You're welcome. I'm happy to hear that you got it sorted.


My System SpecsSystem Spec
.
31 May 2010   #81
dr1254

windows 7
 
 

It works. Thanks a lot!

Daniel
My System SpecsSystem Spec
15 Jun 2010   #82
squall leonhart

Windows 7
 
 

this seems to be broken when also using the open elevated command window tweak, it appears to not auto elevate correctly for some reason.

edit,

strange i must've been using an older version or something
My System SpecsSystem Spec
15 Jun 2010   #83
Brink

64-bit Windows 10 Pro
 
 

Hello Danial,

Yes, you have a older version. The current download had been updated not to long ago to cleanly remove and replace the Open Command Window Here as Administrator context menu item.
My System SpecsSystem Spec
.

15 Jun 2010   #84
squall leonhart

Windows 7
 
 

i modified it some more to add the LUA shield to directories xD

elevated cmd windows im not to worried about, i can launch them from total commander just by running that elevated xD
My System SpecsSystem Spec
15 Jun 2010   #85
Brink

64-bit Windows 10 Pro
 
 

Good idea. Updated downloads with to have the icon as well.
My System SpecsSystem Spec
15 Jun 2010   #86
ebarn

Windows 7 Ultimate x64
 
 

Does this replace the "Run as Administrator" option?
My System SpecsSystem Spec
15 Jun 2010   #87
squall leonhart

Windows 7
 
 

no.
My System SpecsSystem Spec
15 Jun 2010   #88
ebarn

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by squall leonhart View Post
no.
Hmmm.. I don't see it anymore when I right click.
My System SpecsSystem Spec
15 Jun 2010   #89
squall leonhart

Windows 7
 
 

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"
My System SpecsSystem Spec
Comment

 Take Ownership Shortcut




Tutorial Tools Search this Tutorial
Search this Tutorial:

Advanced Search




Similar help and support threads
Windows 7 Tutorial Category
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 11:24.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App