Taking ownership

J

Jeff Layman

There have been numerous posts in this NG about the problem of Win7
preventing changes to, or doing something with a file, because the
person trying it does not have the correct permission, even if that
person has administrator status.

The way round this is normally said to be opening the file properties,
going to the security tab, and changing the permissions settings. It
isn't that easy and sometimes doesn't seem to work.

Has anyone installed the registry hack given here which supposedly makes
the whole process a lot easier?
http://www.howtogeek.com/howto/wind...ership-to-explorer-right-click-menu-in-vista/

Reading the comments on that page and in the forum it seems to work for
most people, but for others it doesn't and may even screw some things up.

Anyone here who has installed and used it - successfully or not?
 
D

Dave \Crash\ Dummy

Jeff said:
There have been numerous posts in this NG about the problem of Win7
preventing changes to, or doing something with a file, because the
person trying it does not have the correct permission, even if that
person has administrator status.

The way round this is normally said to be opening the file properties,
going to the security tab, and changing the permissions settings. It
isn't that easy and sometimes doesn't seem to work.

Has anyone installed the registry hack given here which supposedly makes
the whole process a lot easier?
http://www.howtogeek.com/howto/wind...ership-to-explorer-right-click-menu-in-vista/


Reading the comments on that page and in the forum it seems to work for
most people, but for others it doesn't and may even screw some things up.

Anyone here who has installed and used it - successfully or not?
I'm waiting for you to try it. :)
 
B

Bruce Hagen

Jeff Layman said:
There have been numerous posts in this NG about the problem of Win7
preventing changes to, or doing something with a file, because the
person trying it does not have the correct permission, even if that
person has administrator status.

The way round this is normally said to be opening the file properties,
going to the security tab, and changing the permissions settings. It
isn't that easy and sometimes doesn't seem to work.

Has anyone installed the registry hack given here which supposedly makes
the whole process a lot easier?
http://www.howtogeek.com/howto/wind...ership-to-explorer-right-click-menu-in-vista/

Reading the comments on that page and in the forum it seems to work for
most people, but for others it doesn't and may even screw some things
up.

Anyone here who has installed and used it - successfully or not?


I added it a long time ago. Works just fine.
 
B

Bruce Hagen

Jeff Layman said:
Thanks. I should also have asked which version of Win7 you use.

I have Ultimate on my desktop and Home Premium on my laptop. Works with
both.
 
C

Char Jackson

I added it a long time ago. Works just fine.
Same here. I don't often use it, and in fact I don't remember the last
time I needed it, but I know I used it immediately after adding it and
it worked fine.
 
D

Dave-UK

Jeff Layman said:
There have been numerous posts in this NG about the problem of Win7
preventing changes to, or doing something with a file, because the
person trying it does not have the correct permission, even if that
person has administrator status.

The way round this is normally said to be opening the file properties,
going to the security tab, and changing the permissions settings. It
isn't that easy and sometimes doesn't seem to work.

Has anyone installed the registry hack given here which supposedly makes
the whole process a lot easier?
http://www.howtogeek.com/howto/wind...ership-to-explorer-right-click-menu-in-vista/

Reading the comments on that page and in the forum it seems to work for
most people, but for others it doesn't and may even screw some things up.

Anyone here who has installed and used it - successfully or not?
The reg file from that site is incomplete as it doesn't process exe files.
This reg file does process exe files, and adds a shield icon:

--------------------------------------------------
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"

------------------------------------------------------------

To remove the above:
------------------------------------------------------------

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\*\shell\takeownership]

[-HKEY_CLASSES_ROOT\exefile\shell\takeownership]

[-HKEY_CLASSES_ROOT\dllfile\shell\takeownership]

[-HKEY_CLASSES_ROOT\Directory\shell\takeownership]

------------------------------------------------------------
 
J

Jeff Layman

Jeff Layman said:
There have been numerous posts in this NG about the problem of Win7
preventing changes to, or doing something with a file, because the
person trying it does not have the correct permission, even if that
person has administrator status.

The way round this is normally said to be opening the file properties,
going to the security tab, and changing the permissions settings. It
isn't that easy and sometimes doesn't seem to work.

Has anyone installed the registry hack given here which supposedly makes
the whole process a lot easier?
http://www.howtogeek.com/howto/wind...ership-to-explorer-right-click-menu-in-vista/

Reading the comments on that page and in the forum it seems to work for
most people, but for others it doesn't and may even screw some things up.

Anyone here who has installed and used it - successfully or not?
The reg file from that site is incomplete as it doesn't process exe files.
This reg file does process exe files, and adds a shield icon:

--------------------------------------------------
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"

------------------------------------------------------------

To remove the above:
------------------------------------------------------------

Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\*\shell\takeownership]

[-HKEY_CLASSES_ROOT\exefile\shell\takeownership]

[-HKEY_CLASSES_ROOT\dllfile\shell\takeownership]

[-HKEY_CLASSES_ROOT\Directory\shell\takeownership]
Thanks for the info.
 
D

Dave-UK

Thanks for the info.
You're welcome.
Also, if anyone's interested, the take ownership feature is broken in the Ultimate Windows Tweaker.
This one's worse because not only does it not do exe files but there is no recurse switch ( /r )
in the Takeown command line for Directories.
So you can take ownership of a folder but if there are any files inside that folder they will
have to be done one at a time. I emailed them ages ago but nothings changed.
 
C

Char Jackson

You're welcome.
Also, if anyone's interested, the take ownership feature is broken in the Ultimate Windows Tweaker.
This one's worse because not only does it not do exe files but there is no recurse switch ( /r )
in the Takeown command line for Directories.
So you can take ownership of a folder but if there are any files inside that folder they will
have to be done one at a time. I emailed them ages ago but nothings changed.
So which one is the best or most complete version? The reg file that
was posted in this thread?
 
P

PaulM

The reg file posted in here will mess up your Windows 7 really bad. Do not
use it.



Paul's XP and Vista Tweaks
---------------------------------------------
www.paulsxp.com
---------------------------------------------
Paul's Forum
---------------------------------------------
www.paulsxp.com/forum
---------------------------------------------
"Char Jackson" wrote in message

You're welcome.
Also, if anyone's interested, the take ownership feature is broken in the
Ultimate Windows Tweaker.
This one's worse because not only does it not do exe files but there is no
recurse switch ( /r )
in the Takeown command line for Directories.
So you can take ownership of a folder but if there are any files inside
that folder they will
have to be done one at a time. I emailed them ages ago but nothings
changed.
So which one is the best or most complete version? The reg file that
was posted in this thread?
 
D

Dave-UK

PaulM said:
The reg file posted in here will mess up your Windows 7 really bad. Do not
use it.
I've used it on several machines and haven't noticed my Windows 7 being messed up really bad.
Can you explain to me how my systems are messed up ?
 
D

Dave-UK

Char Jackson said:
So which one is the best or most complete version? The reg file that
was posted in this thread?
If your version works fine for you then I'd stay with that version.
 
C

Char Jackson

If your version works fine for you then I'd stay with that version.
Thanks, Dave. I so rarely use it so I guess I'll just stay with what
I've got until I run into a situation where it's inadequate.
 
P

PaulM

When I run it on my computer it will mess up the file association. I can no
longer run any .exe files.



Paul's XP and Vista Tweaks
---------------------------------------------
www.paulsxp.com
---------------------------------------------
Paul's Forum
---------------------------------------------
www.paulsxp.com/forum
---------------------------------------------
"Dave-UK" wrote in message


PaulM said:
The reg file posted in here will mess up your Windows 7 really bad. Do not
use it.
I've used it on several machines and haven't noticed my Windows 7 being
messed up really bad.
Can you explain to me how my systems are messed up ?
 
D

Dave-UK

PaulM said:
When I run it on my computer it will mess up the file association. I can no
longer run any .exe files.
Where is the error in the reg file ?
Exactly which line or command syntax is changing your file association ?
From the link in your signature you seem to be some sort of programmer so please
provide more details on the problem and provide any corrections to the reg file.
Thanks.
 
P

PaulM

This code here was the problem. I am trying to find out why.

[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"



Paul's XP and Vista Tweaks
---------------------------------------------
www.paulsxp.com
---------------------------------------------
Paul's Forum
---------------------------------------------
www.paulsxp.com/forum
---------------------------------------------
"Dave-UK" wrote in message


PaulM said:
When I run it on my computer it will mess up the file association. I can
no longer run any .exe files.
Where is the error in the reg file ?
Exactly which line or command syntax is changing your file association ?
From the link in your signature you seem to be some sort of programmer so
please
provide more details on the problem and provide any corrections to the reg
file.
Thanks.
 
D

Dave-UK

PaulM said:
This code here was the problem. I am trying to find out why.

[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"

There is nothing wrong with that code.
You are the only person who seems to have problems with it.

I have downloaded the Take Ownership vbs scripts from your forum:

http://www.paulsxp.com/forum/viewtopic.php?f=12&t=3610

Not only does your script not do exe files it does not do ANY file or folder.
Right-clicking on a file and selecting Take Ownership briefly flashes a command
window but the file's owner remains the same.
The script does not work because you have coded it wrong.

I would have thought that you at least test your creations before offering them
to the public and asking for a donation.

When you admit that the reg file I posted did not corrupt your exe file
associations then I'll tell you where you went wrong with your vbs script.
Have a nice day.
 
P

PaulM

My script does not work in windows 7. I will update it.

I did get your reg file to work, it was something in the registery.



Paul's XP and Vista Tweaks
---------------------------------------------
www.paulsxp.com
---------------------------------------------
Paul's Forum
---------------------------------------------
www.paulsxp.com/forum
---------------------------------------------
"Dave-UK" wrote in message


PaulM said:
This code here was the problem. I am trying to find out why.

[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"

There is nothing wrong with that code.
You are the only person who seems to have problems with it.

I have downloaded the Take Ownership vbs scripts from your forum:

http://www.paulsxp.com/forum/viewtopic.php?f=12&t=3610

Not only does your script not do exe files it does not do ANY file or
folder.
Right-clicking on a file and selecting Take Ownership briefly flashes a
command
window but the file's owner remains the same.
The script does not work because you have coded it wrong.

I would have thought that you at least test your creations before offering
them
to the public and asking for a donation.

When you admit that the reg file I posted did not corrupt your exe file
associations then I'll tell you where you went wrong with your vbs script.
Have a nice day.
 
D

Dave-UK

PaulM said:
My script does not work in windows 7. I will update it.

I did get your reg file to work, it was something in the registery.
What was the ' something ' in your ' registery ' ?
You haven't provided any details, and until you do I can only assume you are
just lying about your 'problem'. It never existed, it was just you spreading FUD.
I see you have corrected your sloppy code but you haven't included exe files so
your Take Ownership script is as useless as the others.
You should include the reg file I posted in your script, then it would handle all files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top