NoWorkingDirectory
(1)
TakeControlOf
(1)
IsolatedCommand
(1)
HaveWindows
(1)
Braincell
(1)
Batteries
(1)
Registry
(1)
EGnc4r
(1)
Take ownership with right-click
Asked By Carlo
03-Nov-07 01:52 PM
Taking ownership of a file or folder may be a little cumbersome.
I found this reg file on the web
(http://forums.mydigitallife.info/showthread.php?t=852) that adds a
righ-click option "Take Ownership" when right-clicking in windows explorer.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
administrators:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant
administrators:F /t"
/grant administrators:F /t"
Save it as a .reg file.
Click on it and you are done.
Carlos
Works nicely once I d/led the zip. Thks.
Asked By Kue2
03-Nov-07 02:49 PM
Works nicely once I d/led the zip. Thks. I saved the hkey script as a
reg,but it would not merge into registry. So I d/led the zip extracted to a
temp dir & ran it & it worked.....fine. I think in my haste I highlighted
the > in copying the script........lol.
Hugh,I'm glad it did.
Asked By Carlo
03-Nov-07 03:30 PM
Hugh,
I'm glad it did.
If you feel like investigating/tweaking this afternoon, go here:
http://www.mydigitallife.info/category/application-software/operating-systems/windows-vista/
It is the site where I found that reg tweak.
Carlos
Oh!!!!!!!!!!!!!!!! thanks!!!!!
Asked By Kue2
03-Nov-07 04:10 PM
Oh!!!!!!!!!!!!!!!! thanks!!!!! much appreciated.
Why when I try to take ownership it is saying"This program does not have a
Asked By Clayton
05-Nov-07 12:03 AM
Why when I try to take ownership it is saying
action. Create an association in the Set Associsations control panel."
Hi Clayton,Did you add the following line at the beginning of the reg file?
Asked By Jane C
05-Nov-07 05:37 AM
Hi Clayton,
Did you add the following line at the beginning of the reg file?
Windows Registry Editor Version 5.00
The contents of the reg file should be:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
administrators:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant
administrators:F /t"
/grant administrators:F /t"
--
Jane, not plain ;) 64 bit enabled :-)
Batteries not included. Braincell on vacation ;-)
MVP Windows Shell/User
Take ownership with right-click
Asked By Carlo
05-Nov-07 07:20 AM
Thanks for jumping in, Jane!
Below is what I haveWindows Registry Editor Version 5.
Asked By Clayton
05-Nov-07 03:32 PM
Below is what I have
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
[HKEY_CLASSES_ROOT\*\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
administrators:F"
[HKEY_CLASSES_ROOT\Directory\shell\runas]
@="Take Ownership"
[HKEY_CLASSES_ROOT\Directory\shell\runas\command]
@="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant
administrators:F /t"
/grant administrators:F /t"
Clayton,If you still have troubles, download the zip file from the supplied
Asked By Carlo
05-Nov-07 04:27 PM
Clayton,
If you still have troubles, download the zip file from the supplied link.
You will have to register first but it is fast and free of charge.
Carlos
Hi Clayton,When you copy the text into notepad, do File, Save As, name it
Asked By Jane C
05-Nov-07 04:36 PM
Hi Clayton,
When you copy the text into notepad, do File, Save As, name it TakeOwn.reg,
and select "All Files" as the "save as type". If you don't, then it will
end up with a .txt extension after the .reg bit :)
--
Jane, not plain ;) 64 bit enabled :-)
Batteries not included. Braincell on vacation ;-)
MVP Windows Shell/User
Take ownership with right-click
Asked By Jane C
05-Nov-07 04:38 PM
--
Jane, not plain ;) 64 bit enabled :-)
Batteries not included. Braincell on vacation ;-)
MVP Windows Shell/User
Thanks, I downloaded the zip file and copied the file TakeControlOf.
Asked By Clayton
06-Nov-07 02:11 PM
Thanks, I downloaded the zip file and copied the file TakeControlOf.cmd to
C:\ and ran TakeControlOf C:\
and it started running SUCCESS for 10 mins, but that didn't work, now some
of my application shortcuts has lost it's icon and does not open, I think I
screwed up somewhere along the line, I'm usually pretty good at following
instructions
Clayton,I am not quite sure you downloaded the right zip file.
Asked By Carlo
06-Nov-07 02:51 PM
Clayton,
I am not quite sure you downloaded the right zip file.
The one I mention, once unzipped, contains a *.reg file.
There's no *.cmd file in there.
You install the *.reg by clicking (or double-clicking, depends on your
setup) on it.
And that is all about it.
From there on you get the right-click context menu "Take Ownership" in
Windows Explorer.
No reboot required.
Jane C posted an excellent description in this thread of how to save the
text I posted as a *.reg file.
Carlos
I have done excaclly what Jane suggested and also downloaded the file
Asked By Clayton
06-Nov-07 03:18 PM
I have done excaclly what Jane suggested and also downloaded the file
TakeControlOf.zip from http://forums.mydigitallife.info/showthread.php?t=116
but inside this zip file is a file called TakeControlOf.cmd, no .reg file,
so now I am confused.
At least when I right click on the folder it shows Take Ownership so I must
be half way there
Take ownership with right-click
Asked By Carlo
06-Nov-07 07:38 PM
Clayton,
Everything is clear now.
This is the right thread
http://forums.mydigitallife.info/showthread.php?t=852
to download the zip file containing the reg file.
Carlos
Take ownership with right-click
Asked By Clayton
06-Nov-07 08:25 PM
Now we are cooking with gas, all works now
cheers