search
Japanese Chinese Nederlands Espanol Italiano Deutsch Francais Twitter Rss Feeds
Windows 7 GroupsView
Windows 64Bit General

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Application Development
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft Windows 64Bit General Posts  Ask A New Question 

Take ownership with right-click - Carlo

Saturday, November 03, 2007 1: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
reply
 

Works nicely once I d/led the zip. Thks. - Kue2

Saturday, November 03, 2007 2: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.
reply

Hugh,I'm glad it did. - Carlo

Saturday, November 03, 2007 3: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
reply

Oh!!!!!!!!!!!!!!!! thanks!!!!! - Kue2

Saturday, November 03, 2007 4:10 PM

Oh!!!!!!!!!!!!!!!! thanks!!!!! much appreciated.
reply

Why when I try to take ownership it is saying"This program does not have a - Clayton

Monday, November 05, 2007 12:03 AM

Why when I try to take ownership it is saying

action. Create an association in the Set Associsations control panel."
reply

Hi Clayton,Did you add the following line at the beginning of the reg file? - Jane C

Monday, November 05, 2007 5: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
reply

Take ownership with right-click - Carlo

Monday, November 05, 2007 7:20 AM

Thanks for jumping in, Jane!
reply

Below is what I haveWindows Registry Editor Version 5. - Clayton

Monday, November 05, 2007 3: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"
reply

Clayton,If you still have troubles, download the zip file from the supplied - Carlo

Monday, November 05, 2007 4: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
reply

Hi Clayton,When you copy the text into notepad, do File, Save As, name it - Jane C

Monday, November 05, 2007 4: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
reply

Take ownership with right-click - Jane C

Monday, November 05, 2007 4:38 PM

--
Jane, not plain ;) 64 bit enabled :-)
Batteries not included.  Braincell on vacation ;-)
MVP Windows Shell/User
reply

Thanks, I downloaded the zip file and copied the file TakeControlOf. - Clayton

Tuesday, November 06, 2007 2: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
reply

Clayton,I am not quite sure you downloaded the right zip file. - Carlo

Tuesday, November 06, 2007 2: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
reply

I have done excaclly what Jane suggested and also downloaded the file - Clayton

Tuesday, November 06, 2007 3: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
reply

Take ownership with right-click - Carlo

Tuesday, November 06, 2007 7: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
reply

Take ownership with right-click - Clayton

Tuesday, November 06, 2007 8:25 PM

Now we are cooking with gas, all works now

cheers
reply
 
 

Previous Microsoft Windows 64Bit General conversation.