Add "Take Ownership" to Right-Click Menu

Posted On 2009-01-22 by FortyPoundHead
Keywords: Windows 7 Take Ownership Right Click Context Menu
Tags: Software Hack/Tweak Tip Windows 7
Views: 2201

To take ownership of a file or directory, you'd normally right click the object, select properties, open the security tab, click advanced, open the owner tab, select a new owner, then click apply.

With this handy little registry edit, you can add the "Take Ownership" option to the right click context menu, saving time and mouse clicks.

Be mindful of line wrapping on the longer lines below.

@="Take Ownership"

@="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
"IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"

@="Take Ownership"

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

About the Author

FortyPoundHead has posted a total of 1974 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Code Links