Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computing > Windows 64bit > Take ownership with right-click

Reply
Thread Tools

Take ownership with right-click

 
 
=?Utf-8?B?Q2FybG9z?=
Guest
Posts: n/a
 
      11-03-2007
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"
"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]
@="Take Ownership"
"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"

Save it as a .reg file.
Click on it and you are done.

Carlos
 
Reply With Quote
 
 
 
 
Kue2
Guest
Posts: n/a
 
      11-03-2007
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.

"Carlos" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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"
> "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]
> @="Take Ownership"
> "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"
>
> Save it as a .reg file.
> Click on it and you are done.
>
> Carlos


 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2FybG9z?=
Guest
Posts: n/a
 
      11-03-2007
Hugh,
I'm glad it did.
If you feel like investigating/tweaking this afternoon, go here:
http://www.mydigitallife.info/catego...windows-vista/
It is the site where I found that reg tweak.
Carlos

"Kue2" wrote:

> 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.
>
> "Carlos" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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"
> > "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]
> > @="Take Ownership"
> > "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"
> >
> > Save it as a .reg file.
> > Click on it and you are done.
> >
> > Carlos

>
>

 
Reply With Quote
 
Kue2
Guest
Posts: n/a
 
      11-03-2007
Oh!!!!!!!!!!!!!!!! thanks!!!!! much appreciated.


"Carlos" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hugh,
> I'm glad it did.
> If you feel like investigating/tweaking this afternoon, go here:
> http://www.mydigitallife.info/catego...windows-vista/
> It is the site where I found that reg tweak.
> Carlos
>
> "Kue2" wrote:
>
>> 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.
>>
>> "Carlos" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > 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"
>> > "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]
>> > @="Take Ownership"
>> > "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"
>> >
>> > Save it as a .reg file.
>> > Click on it and you are done.
>> >
>> > Carlos

>>
>>


 
Reply With Quote
 
Clayton
Guest
Posts: n/a
 
      11-05-2007
Why when I try to take ownership it is saying

"This program does not have a program associtaed with it for perfoming this
action. Create an association in the Set Associsations control panel."



"Kue2" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Oh!!!!!!!!!!!!!!!! thanks!!!!! much appreciated.
>
>
> "Carlos" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Hugh,
>> I'm glad it did.
>> If you feel like investigating/tweaking this afternoon, go here:
>> http://www.mydigitallife.info/catego...windows-vista/
>> It is the site where I found that reg tweak.
>> Carlos
>>
>> "Kue2" wrote:
>>
>>> 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.
>>>
>>> "Carlos" <(E-Mail Removed)> wrote in message
>>> news:(E-Mail Removed)...
>>> > 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"
>>> > "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]
>>> > @="Take Ownership"
>>> > "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"
>>> >
>>> > Save it as a .reg file.
>>> > Click on it and you are done.
>>> >
>>> > Carlos
>>>
>>>

>


 
Reply With Quote
 
Jane C
Guest
Posts: n/a
 
      11-05-2007
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"
"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]
@="Take Ownership"
"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"



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

"Clayton" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Why when I try to take ownership it is saying
>
> "This program does not have a program associtaed with it for perfoming
> this action. Create an association in the Set Associsations control
> panel."
>
>
>


 
Reply With Quote
 
=?Utf-8?B?Q2FybG9z?=
Guest
Posts: n/a
 
      11-05-2007
Thanks for jumping in, Jane!

"Jane C" wrote:

> 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"
> "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]
> @="Take Ownership"
> "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"
>
>
>
> --
> Jane, not plain 64 bit enabled
> Batteries not included. Braincell on vacation
> MVP Windows Shell/User
>
> "Clayton" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Why when I try to take ownership it is saying
> >
> > "This program does not have a program associtaed with it for perfoming
> > this action. Create an association in the Set Associsations control
> > panel."
> >
> >
> >

>

 
Reply With Quote
 
Clayton
Guest
Posts: n/a
 
      11-05-2007
Below is what I have


Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"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]
@="Take Ownership"
"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"



"Carlos" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks for jumping in, Jane!
>
> "Jane C" wrote:
>
>> 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"
>> "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]
>> @="Take Ownership"
>> "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"
>>
>>
>>
>> --
>> Jane, not plain 64 bit enabled
>> Batteries not included. Braincell on vacation
>> MVP Windows Shell/User
>>
>> "Clayton" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Why when I try to take ownership it is saying
>> >
>> > "This program does not have a program associtaed with it for perfoming
>> > this action. Create an association in the Set Associsations control
>> > panel."
>> >
>> >
>> >

>>


 
Reply With Quote
 
=?Utf-8?B?Q2FybG9z?=
Guest
Posts: n/a
 
      11-05-2007
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

"Clayton" wrote:

> Below is what I have
>
>
> Windows Registry Editor Version 5.00
>
>
> [HKEY_CLASSES_ROOT\*\shell\runas]
> @="Take Ownership"
> "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]
> @="Take Ownership"
> "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"
>
>
>
> "Carlos" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Thanks for jumping in, Jane!
> >
> > "Jane C" wrote:
> >
> >> 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"
> >> "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]
> >> @="Take Ownership"
> >> "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"
> >>
> >>
> >>
> >> --
> >> Jane, not plain 64 bit enabled
> >> Batteries not included. Braincell on vacation
> >> MVP Windows Shell/User
> >>
> >> "Clayton" <(E-Mail Removed)> wrote in message
> >> news:(E-Mail Removed)...
> >> > Why when I try to take ownership it is saying
> >> >
> >> > "This program does not have a program associtaed with it for perfoming
> >> > this action. Create an association in the Set Associsations control
> >> > panel."
> >> >
> >> >
> >> >
> >>

>
>

 
Reply With Quote
 
Jane C
Guest
Posts: n/a
 
      11-05-2007
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

"Clayton" <(E-Mail Removed)> wrote in message
news:eGnc4r%(E-Mail Removed)...
> Below is what I have
>
>
> Windows Registry Editor Version 5.00


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
impossible to delete file because it is impossible to take ownership Devvie Nuis Computer Support 21 04-20-2009 02:07 AM
Tomcat file ownership Mike Java 0 02-28-2006 09:39 PM
SQL Session State, Cross DB ownership Brian ASP .Net 0 05-03-2005 10:40 PM
Take ownership of Windows registry key ntdude4@hotmail.com Perl Misc 0 01-01-2005 05:21 PM
Re: Printer -total cost of ownership EricP Computer Support 0 10-27-2003 02:32 PM



Advertisments