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: Right click "Take Ownership" not working correctly

25 Aug 2016   #1
glatzfront

Win7 Premium
 
 
Right click "Take Ownership" not working correctly

Asus laptop with Windows 7 Professional


Right click "Take Ownership";
changes Owner to "owner (ASUSI-PC\owner)", not "Administrators (ASUSI-PC\Administrators)" as expected?
it does add "(Administrators (ASUSI-PC\Administrators)" with full permissions.


Below is the second Reg Key I tried after uninstalling the first (first key had same result as second key)


Windows Registry Editor Version 5.00

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

[HKEY_CLASSES_ROOT\*\shell\takeownership\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\exefile\shell\takeownership]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\exefile\shell\takeownership\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\dllfile\shell\takeownership]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\dllfile\shell\takeownership\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\takeownership]
@="Take ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\shell\takeownership\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"


My System SpecsSystem Spec
.
25 Aug 2016   #2
derekimo

Microsoft Community Contributor Award Recipient

 
 

Have you tried this one?

Take Ownership Shortcut

It looks a little different than the one you have showing,

Code:
Windows Registry Editor Version 5.00

; Created by: Shawn Brink
; http://www.sevenforums.com
; Tutorial: http://www.sevenforums.com/tutorials/1911-take-ownership-shortcut.html


[-HKEY_CLASSES_ROOT\*\shell\runas]

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

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


[-HKEY_CLASSES_ROOT\Directory\shell\runas]

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

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


[-HKEY_CLASSES_ROOT\dllfile\shell\runas]

[HKEY_CLASSES_ROOT\dllfile\shell\runas]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""
Position="middle"

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


[-HKEY_CLASSES_ROOT\Drive\shell\runas]

[HKEY_CLASSES_ROOT\Drive\shell\runas]
@="Take Ownership"
"HasLUAShield"=""
"NoWorkingDirectory"=""
Position="middle"

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

[-HKEY_CLASSES_ROOT\exefile\shell\runas]

[HKEY_CLASSES_ROOT\exefile\shell\runas]
"HasLUAShield"=""

[HKEY_CLASSES_ROOT\exefile\shell\runas\command]
@="\"%1\" %*"
"IsolatedCommand"="\"%1\" %*"
That's the one under number 2 in the tutorial.
My System SpecsSystem Spec
28 Aug 2016   #3
glatzfront

Win7 Premium
 
 

Thanks for your help

This looks like what I have now, I would like Administrators to be the owner.

"This will allow you to be able to instantly take ownership of a file, folder (and all contents), or drive (and all contents) by changing the owner to the current user and grant the Administrators group full access permission."

Any other ideas?
My System SpecsSystem Spec
.

28 Aug 2016   #4
Callender

Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
 
 

What are you trying to take ownership of and why? Changing ownership could screw up your system if used incorrectly. I'm not expert on the subject. In mu opinion there's no point in changing ownership unless you are trying to delete a stubborn folder/ file and for anything else you'd need to be able to restore original permissions in the event of problems. (Easier said than done)

There are a couple of utilities that you could use instead of messing about with command lines and permissions dialog boxes.
Right click "Take Ownership" not working correctly-take-ownership-1.jpg
Right click "Take Ownership" not working correctly-take-ownership-2.jpg
So what are you trying to accomplish exactly?


My System SpecsSystem Spec
28 Aug 2016   #5
Eric3742

Windows 7 x64
 
 

I agree with Callender as this is no good to use Administrator.

Use your own account-name, as you are the administrator already.

For "Take Ownership" will be very troublesome.
Already the UAC is there.
And Administrator means leaving your home main door open.

Let say, you install a program.
In normal way, the prompt on UAC.
In Administrator mode, ex; no prompt and you cannot control any malware to go right inside your core, where it is difficult to find.
Should there be any problem, you need to use the Administrator mode to do.
This is almost like using Administrator to do your normal computing.
Should any other user hit a problem, then the Administrator will be doing extra work.
Hence, this is why the Administrator cannot be seen, avoid unnecessary issue later on.

Let the Administrator go to sleep, as your account is almost near to Administrator level, that is 1 level down.
This is the differences between you, as 'mini' administrator (small cap 'a') and Administrator as full access.
Do note is you are in the Administrator mode, and any malware are happy to get what they want.

Quote: I'm not expert on the subject.
imo, there are 2 things best leave it alone; Administrator mode AND Registry setting. As these 2 are the highest level.
My System SpecsSystem Spec
28 Aug 2016   #6
TechnoMage2016

Windows 7 Ultimate, SP1, x86
 
 

Take Ownership is Old School.
Download and install "Grant Admin Full Control".
I call that, Take Ownership on steroids!

That program is the first thing I install on a new setup.

Good luck!
TechnoMage
My System SpecsSystem Spec
02 Sep 2016   #7
glatzfront

Win7 Premium
 
 

Thanks to all that have helped
My System SpecsSystem Spec
Reply

 Right click "Take Ownership" not working correctly




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
BTWUIExt has stopped working when i click on "control"
I have uninstalled/reinstalled with both windows and revo. I've run scannow, checked services.msc-all running & updated all drivers. My bluetooth headset connects ok & mostly works but as soon as i push the control button btwuiext crashes . i can't find a solution anywhere. I went to the broadcom...
Software
"Open with" function not working correctly
Hi everyone, I use this piece of software called SAI, and basically I want to set all my .sai files to open with a new version of the software. I've made sure to delete all copies of the old .exe, but I'm having a very strange and irritating problem. When I write click on a .sai file and go to...
Software
"Take Ownership" of files not working
Hey all, I have been wracking my brain trying to find a way to fix this issue. Backstory: (2010) My computers hard drive (herein referred to as driveA) filled up and I installed a second drive (herein referred to as driveB) to hold all my files. Simple. Next, I updated my windows from XP to 7...
General Discussion
"Windows Explorer has stopped working right click"
Hi, This problem has been frustrating me for some time and I'm wondering if anyone could help me with this. As the title says, I am getting a "windows explorer has stopped working " error when I right click a program. whenever I right-click a folder, it takes very long for it to load. It works...
BSOD Help and Support
"open with" command not working correctly
Hi, I've been using XP for 6 years and just switched to Windows 7 3 days ago when I got a new computer. The default image viewing is Windows Photo Viewer, which is fine. I am running Fireworks MX (yes, I know it's old, but I can't afford to buy a newer version), and sometimes I'd like to...
General Discussion
Bypass "Ownership" and "permissions" to files altogether!
Hello all! I don't understand what the issue is but I am logged on as administrator on my computer and only a few of my files I can access. the window will pop up stating that i don't have permission to view the file! if I am the adminitrator i should have full access to any file, right? this...
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 15:26.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App