Go Back   Windows Vista Forum | Vista Babble > Windows Vista > Vista Addons and Applications

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 10-12-2007, 12:53 AM
Snuffy's Avatar
Elite Members
 
Join Date: Nov 2006
Location: S.W. Kansas
Posts: 2,841
Snuffy is on a distinguished road
Send a message via MSN to Snuffy
Exclamation This can be DANGEROUS - Nerds/GEEK Only

Add "Take Ownership" to right-click menu in Vista.
DANGEROUS DO NOT ATTEMPT UNLESS YOUR SURE...
In order to streamline the ownership of various files and folders in Windows Vista, you can add the “Take Ownership” option to your right-click menu. After clicking this icon, the owner of the selected file or folder will automatically change to your username. Please note that in order to use this feature you must have administrative privileges.
<|>
Please be aware that this change requires making a change to the Windows Vista registry.
<|>
Note: Editing the registry has the potential to cause serious (and unrecoverable) damage to your PC. If you are at all uncomfortable editing the registry, please do not attempt the following.
The first step is to create a registry file. You can do this by opening Notepad (Start >> All Programs >> Accessories >> Notepad) and copying and pasting the following:
------------------------------------------------------------------------

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\runas]
@="Take Ownership"
"Extended"=""
"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"
"Extended"=""
"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 the file with the name Ownership.reg and close Notepad.

Double-click your Ownership.reg file to apply it to the registry.

You will have to grant access, click Continue: (unless you Disable UAC)

The registry editor will give you a security prompt, click Yes.

You will be greeted with the following message from the registry editor, click Ok:

When you hold shift and right-click on a file or folder you will have the option of changing the ownership.

Please note that before the ownership will be changed, you must grant access, click Continue.

In order to verify that the “Take Ownership" dialog successfully processed, you can right-click on a file, choose Properties and then choose Details and you will see the “Owner” section changed to COMPUTERNAME\USERNAME.
------------------------------------------------------------------
Normal way to do this:
If you have problems with permissions, select file...goto
> properties....take ownership....then change permissions.
> take ownership of the file
> - right click file, click properties
> - click security tab
> - click advanced
> - click owner tab
> - click edit
> - click administrators group
> - click ok
> - click ok to the message
> - click ok twice more to close out all properties dialogs
> now that you are the owner of the file, you can change the permissions
> on
> the file even though you do not have explicit permission to do so.
> however,
> you still can't modify that file - you have to give yourself that
> permission.
__________________
The only Stupid Question is the one you failed to Ask!
Beta Tester since Pre Win 95.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Sponsored Links
  #2  
Old 10-12-2007, 09:33 AM
Junior Member
 
Join Date: Oct 2007
Posts: 5
xlnt123 is on a distinguished road

Handle with care as Author Says...........

Remove .txt from the end.......
Thank to the original Author.....
Attached Files
File Type: txt Ownership.reg.txt (690 Bytes, 8 views)

Last edited by xlnt123 : 10-12-2007 at 09:35 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3  
Old 10-12-2007, 05:57 PM
JoshW02@hotmail.co.uk's Avatar
Elite Members
 
Join Date: Mar 2006
Location: UK-England
Posts: 1,022
JoshW02@hotmail.co.uk is on a distinguished road
Send a message via MSN to JoshW02@hotmail.co.uk

Yay im a nerd/geek!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4  
Old 10-12-2007, 07:03 PM
Snuffy's Avatar
Elite Members
 
Join Date: Nov 2006
Location: S.W. Kansas
Posts: 2,841
Snuffy is on a distinguished road
Send a message via MSN to Snuffy
Red face Correction on how to save

Correction on how to save.
I was sure every body knew how to save a reg file ... But I'm wrong.

when you save Ownership.reg and close notepad. should be changed to
save as "Ownership.reg" with the quotes... so that .txt is not the ext, but .reg is ext, and it will be a reg file not a .txt file

That is also why I stated only NERDS/GEEKs should use... they should know how to save a .reg file.
Thanks xlnt123 for the reminder.
Quote:
Originally Posted by xlnt123
Remove .txt from the end.......
__________________
The only Stupid Question is the one you failed to Ask!
Beta Tester since Pre Win 95.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5  
Old 10-14-2007, 04:45 PM
Junior Member
 
Join Date: Oct 2007
Posts: 5
xlnt123 is on a distinguished road

Quote:
Originally Posted by Snuffy
Correction on how to save.
I was sure every body knew how to save a reg file ... But I'm wrong.

when you save Ownership.reg and close notepad. should be changed to
save as "Ownership.reg" with the quotes... so that .txt is not the ext, but .reg is ext, and it will be a reg file not a .txt file

That is also why I stated only NERDS/GEEKs should use... they should know how to save a .reg file.
Thanks xlnt123 for the reminder.
Actually I purposefully added the extension .txt for posting becaz it doesn't allow .reg to post.....

I hope I saved it correctly.... and it is working for me properly as u said.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #6  
Old 10-14-2007, 06:20 PM
Snuffy's Avatar
Elite Members
 
Join Date: Nov 2006
Location: S.W. Kansas
Posts: 2,841
Snuffy is on a distinguished road
Send a message via MSN to Snuffy

Quote:
Originally Posted by xlnt123
Actually I purposefully added the extension .txt for posting becaz it doesn't allow .reg to post.....

I hope I saved it correctly.... and it is working for me properly as u said.....
If it is working then you saved it correctly.

That also is why I posted the way I did... but due to your post I realized I failed to notify how to save as so that it would be a .reg file and not a .txt file.

Thanks for the(txt) mention again ...Glad you like. ENJOY
__________________
The only Stupid Question is the one you failed to Ask!
Beta Tester since Pre Win 95.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #7  
Old 10-15-2007, 02:46 PM
Junior Member
 
Join Date: Oct 2007
Posts: 5
xlnt123 is on a distinguished road

Quote:
Originally Posted by Snuffy
If it is working then you saved it correctly.

That also is why I posted the way I did... but due to your post I realized I failed to notify how to save as so that it would be a .reg file and not a .txt file.

Thanks for the(txt) mention again ...Glad you like. ENJOY
Dear Friend!
Definately I like it and I request if u can post some registry to disable unnecessary service with their usage.... so that people can benefit from them, then this post can become sticky....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #8  
Old 10-16-2007, 01:13 AM
Snuffy's Avatar
Elite Members
 
Join Date: Nov 2006
Location: S.W. Kansas
Posts: 2,841
Snuffy is on a distinguished road
Send a message via MSN to Snuffy
Exclamation Modify if you wish.. modify and test with caution

Quote:
Microsoft Windows [Version 6.0.6000]
Copyright (c) 2006 Microsoft Corporation. All rights reserved.

Type "TAKEOWN /?" for usage.

C:\Windows\system32>takeown /?

TAKEOWN [/S system [/U username [/P [password]]]]
/F filename [/A] [/R [/D prompt]]

Description:
This tool allows an administrator to recover access to a file that
was denied by re-assigning file ownership.

Parameter List:
/S system Specifies the remote system to
connect to.

/U [domain\]user Specifies the user context under
which the command should execute.

/P [password] Specifies the password for the
given user context.
Prompts for input if omitted.

/F filename Specifies the filename or directory
name pattern. Wildcard "*" can be used
to specify the pattern. Allows
sharename\filename.

/A Gives ownership to the administrators
group instead of the current user.

/R Recurse: instructs tool to operate on
files in specified directory and all
subdirectories.

/D prompt Default answer used when the current user
does not have the "list folder" permission
on a directory. This occurs while operating
recursively (/R) on sub-directories. Valid
values "Y" to take ownership or "N" to skip.

/? Displays this help message.

NOTE: 1) If /A is not specified, file ownership will be given to the
current logged on user.

2) Mixed patterns using "?" and "*" are not supported.

3) /D is used to suppress the confirmation prompt.

Examples:
TAKEOWN /?
TAKEOWN /F lostfile
TAKEOWN /F \\system\share\lostfile /A
TAKEOWN /F directory /R /D N
TAKEOWN /F directory /R /A
TAKEOWN /F *
TAKEOWN /F C:\Windows\System32\acme.exe
TAKEOWN /F %windir%\*.txt
TAKEOWN /S system /F MyShare\Acme*.doc
TAKEOWN /S system /U user /F MyShare\foo.dll
TAKEOWN /S system /U domain\user /P password /F share\filename
TAKEOWN /S system /U user /P password /F Doc\Report.doc /A
TAKEOWN /S system /U user /P password /F Myshare\*
TAKEOWN /S system /U user /P password /F Home\Logon /R
TAKEOWN /S system /U user /P password /F Myshare\directory /R /A
Here are the codes as set forth by MS using the above command. You can remove as you see fit. or modify as you see fit.. Enjoy and use as you see fit.
__________________
The only Stupid Question is the one you failed to Ask!
Beta Tester since Pre Win 95.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #9  
Old 10-16-2007, 07:59 AM
Junior Member
 
Join Date: Oct 2007
Posts: 5
xlnt123 is on a distinguished road

Its Good and works really fine, Lot of functions in vista r hidden somewhere beneath....
Keep it up buddy!!!!

Last edited by xlnt123 : 10-18-2007 at 09:40 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT +1. The time now is 08:22 PM.



Page generated in 0.21775 seconds with 18 queries

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23