Subscribe to How-To Geek

Add "Take Ownership" to Explorer Right-Click Menu in Vista

Taking ownership of system files or folders in Windows Vista is not a simple task. Whether you use the GUI or the command line, it takes far too many steps.

Thankfully somebody created a registry hack that will give you a menu item for “Take Ownership” that will handle all the steps for you.  (If you are the person that originally made this script, let me know and I’ll give you credit)

Here’s what the new right-click menu will look like after installing this registry hack.

image 

Install

Download and unzip the files contained in the zipfile. Double-click the InstallTakeOwnership.reg file and click through the prompts. No reboot necessary.

image

Uninstall

Double-click the RemoveTakeOwnership.reg file and click through the prompts. No reboot necessary.

 

Download TakeOwnership.zip

The Geek is the founder of How-To Geek and a geek enthusiast. This article was written on 06/3/07 and tagged with: System Administration, Windows Vista

Daily Email Updates

You can get our how-to articles in your inbox each day for free. Just enter your name and email below:


Name:
Email:
Similar Articles Featured Wiki Articles
Latest Software Reviews Quick Linux Tips
Geek Arcade Popular Forum Threads

Comments (90)

  1. huh?

    All I get when I double-click the extracted InstallTakeOwnership.reg file is the window asking me what program do I want to open it with. What do I need to do?

  2. CypherBit

    Nice indeed. Any reason why it says how to do this in Vista only? Have there been any drastic changes from 2k/XP/2k3, can anyone verify if this works on all recent MS OS’s?

  3. jacobian

    what does it do exactly? i installed it and everything seems fine but what does “taking ownership” mean.
    is it just like hiding or encrypting a folder?

  4. Mr Linux

    http://www.winmatrix.com/forum.....opic=13157 (original source as far as I can tell)

    Taking ownership of a file/directory gives you direct read/write access to the file (without going through UAC) and forces other users to go through UAC to get such access. Now that Vista finally has a sane notion of file ownership (like Linux and Mac have had for years), this sort of thing comes in major handy (especially when you often change files like C:\WINDOWS\system32\drivers\etc\HOSTS).

  5. FireMaiden

    Oh my God, this Take Ownership feature is awesome. Many thanks to the creator.

  6. GoldenEagle \\ Pablo

    Thanks for this! We were having issues after the Belkin Easy Transfer Cable messed all the permissions up and after trying several times with Vista’s ownership nothing had worked. This worked first time!

  7. DT

    I spent way too many hours today trying to get our personal.xls with custom macros into the XLStart folder so we could do billing today (prior XP pc fried, new pc is Vista). Needless to say, Vista gives me no rights to XLStart folder and I’m just so glad I found this zip fix here tonite. Can’t wait to try tomorrow! Many thanks. And Microsoft — get a grip, I’m tired of having Mac folks tell me to buy a Mac! Don’t make our lives harder!!! Or you’ll find us all on MAC…

  8. mu12345

    I can’t take the ownership of the C drive. But I can take the ownership of the folders in C drive. Any comment?

  9. mike v

    Ok Guys…..I really screwed up.(that’s what usually happens when you don’t know what your doing) I was trying to gain access to my entire drive so I could delete temp files/temp internet files etc. So, after reading this post on how to delete system files I used this in the command prompt: [takeown / C:\ f ] afterwhich it said that my-acer had owership….Cool so far….I think. Then I used the cacls command: [cacls C:\ *.* /G my-acer:F] I was asked if I was sure & answered yes,hit return & it said the process was successful. Now I can’t get many things to run at all & if I attempt to use the command line as an admin I get this:”c:\windows\system32\cmd.exe the parameter is incorrect”. I get the same sort of message when I try & run other things. I have to also say that when I login to start windows my name is “ironhorse” & the name of the pc is “my-acer”. A friend told me I need to give full rights to both of these names if I want to delete certain files as their considered administrators(both me of course). I haven’t restarted the machine cause I know it will never restart so I’m trying to get this fixed through the command prompt. I tyred to roll back through system protection but can’t get there either. Am I screwed or is this fixable. Mike

  10. Geniusdog

    Mike to me it sounds like your screwed, I guess it just goes to show that you shouldnt mess around unless you know what your doin. I had a similar problem before and I had to do a reinstall, your best bet to keep your files would be to get a knoppix disk and a flash drive** to copy your files to. You will still have to reinstall windows but you will keep all your important data.

    Note
    **The flash drive is not necessary if you have more than one CD burner on your system.

  11. eliminat

    Thank you! Thank you! Thank you! Thank you! Thank you! Thank you!

    You just made my job a lot easier. Migrating files from a customer’s old XP machine to a new Vista machine just got a lot simpler.

  12. asdf

    did i ever tell you i love you, you saved me 10 years of my life

  13. kraymah

    there was thsi file that i couldn’t delete, i hated to see that file . googled …..file don’t delete……and got this site. thanks man……wat else have you got for us?

  14. Peter K

    Beware: “Me too” follows

    The provider of these registry entries should get a medal.

    Here are virtual 2 medals – you deserve one for publishing this.

    !@#$%^& MacroCrap !

  15. clarke

    thank-you very much. why did Vista make file ownership change so difficult?

  16. Bob Cudmore

    This didnt work on my Vista Ultimate. I installed as instructed, but there is no option to ‘take ownership’ when I right click a file or folder.

  17. Lasse

    This was exactely wat I was looking for some days now ;)
    Thanks, very useful reg fix, now I can get rid of folder and files who I crated on a different PC (so you don`t have the admin rights anymore).

    /Lasse

  18. Steve

    I have the same problem as reported by Bob Cudmore: This didnt work on my Vista Ultimate. I installed as instructed, but there is no option to ‘take ownership’ when I right click a file or folder.

    I installed, uninstalled and reinstalled with the same result

  19. MIA

    i have installed but.. still cant seem to delete a *MOV file i have on my Vista Pc. when i right click on ‘take ownership’ it opens up *cmd screen and i cant type anything inside it :(

  20. Emma

    Thank you, thank you, thank you to whoever made this hack!!!! I wanted to copy data across from my old hard drive, and it required over 5 clicks for every single bloody file on the entire hard drive before this hack!

  21. Higham

    Hi Geek,

    Do you know this will work on Windows Vista Home Premium? If so, any help would be much appreciated.

    Yours sincerely,
    Michael Higham

  22. _Ralph_

    I’ve tried it on Vista Home Premium and can’t it to work

  23. Rick

    I already have something as the (Default) item here: HKEY_CLASSES_ROOT\Directory\shell\runas (and in “command” beneath it), so I can’t use this mod. (In case anyone’s wondering, it’s an elevated command prompt.)

    Question: How do you add a second item to that section of the Registry and have them both show up on a right-click?

  24. Nat

    I also couldn’t get it to work, any ideas please?

  25. hireger

    Thanks for the posts. I do appreciate the take ownership help. takeownership.zip is GREAT for files/folders. HOWEVER, I need to take ownership of A DRIVE, and neither vista nor this program works.

  26. Fred Stevens

    One of the computers I use is shared, and this feature is very useful; however, I do not want the other users (standard accounts) to see this option. I understand that they will not be able to run the command, since they’ll be prompted for an admin password and all, but seeing the option at all is unwanted for mostly aesthetic reasons. The following (if it does not get modified or filtered by this commenting system) is the contents of the .REG file I used:


    Windows Registry Editor Version 5.00

    [HKEY_CURRENT_USER\Software\Classes\*\shell\runas]
    @=”Take Ownership”
    “NoWorkingDirectory”=”"

    [HKEY_CURRENT_USER\Software\Classes\*\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_CURRENT_USER\Software\Classes\Directory\shell\runas]
    @=”Take Ownership”
    “NoWorkingDirectory”=”"

    [HKEY_CURRENT_USER\Software\Classes\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”

    and the uninstall has been similarly modified:

    Windows Registry Editor Version 5.00

    [-HKEY_CURRENT_USER\Software\Classes]

    [-HKEY_CURRENT_USER\Software\Classes\Directory\shell\runas]

  27. switch

    It would be nice to have this on the Shift+Right Click menu. Just like “Open command window here…” is.
    Anybody know how to do this?

  28. Jym

    5 gold stars for who ever designed this… it works like it was supposed to be there all along, thanks for solving one of the many million anoying things about vista…

  29. Oiler62

    Finally found the quick fix I needed! Thank you!! I’m a novice and learning mre and more each day.
    I upgraded from XP to Vista last week and had some probs loading it, had to re-install again after a glitch. Everything’s good but noticed my 120gb HD is almost filled up! I dug deep and saw that Vista created a backup for my entire C drive of my old XP stuff and had another backup with my glitched Vista install. Like 60 GB between them! I managed to delete the old XP crap, but the Vista one was hard. I got bits and pieces of it deleted, tried a shredder program and got a little more, but more times than not that Permission BS popped up. I still had 9gb left to dump. I searched all over the NET for help but was getting mixed results or too complicated. This worked great.
    Thanks again.

  30. iamwoturnot

    You guys would solve all your problems if you’d just join the Linux Revolution and force the evil corporate Microsoft right on out of here ;)

    Never have these kinds of problems in Linux, ever.

  31. Z32Lex

    You’ve just fixed my biggest Vista annoyance. Thank you, Thank you, Thank you!

  32. PenjaraPecah

    this thing save my life and time … gazillion thanks…

  33. big-o

    thanks a lot. i dont remember having this issue with windows xp, it looks like the default in vista is to force you to take ownership before being able to do anything created on other pcs. this really sucks and this simple fix it a great cure for it.

    thanks

  34. switch

    http://www.herbystweaks.net/files/TakeOwn.zip for a shift-right click version!

  35. Jeroen

    Thanks man!

    And for those who don’t know what this is.

    Lets say you put a HDD in your computer that holds an Windows XP installation. On that XP installation the user folders where protected, and you can’t just acces this on Vista. With this registerymod you just right click the folder you dont have acces too, and in 1 whipe you just gained yourself acces without much trouble!

    Thanks, for sharing this.

  36. whitenoiz

    HI guys,
    This sounds like exactly what I need. I have removed the hard drive from my old XP laptop and using it as an add-on HDD for my Vista Home Premium driven desktop. I am trying to take ownership of the folders and files therein which are all password protected and having to do it on a file by file basis. Unfortunnately this hack doesnt seem to work!
    I get the right indication when I right click the relevant folder or file but nothing happens…
    Suggestions please….

  37. IK

    Thanks a million to who ever created this wonderful tool. Saved me million clicks.

  38. Henry

    Thanks for all of you blowing off everyone here saying they cant get the program to install properly. We really appreciate the disrespect and lack of support.

  39. The Geek

    @Henry

    If you want a question to be answered more promptly, you need to leave it on the forum. The comments on this article aren’t checked on a regular basis, and with a thousand articles on the site it’s impossible to answer every article comment.

    You might notice that I have a note right above the comment box, asking people to leave computer help questions on the forum. I suppose I need to make it more obvious.

    Sorry for the trouble.

    http://www.howtogeek.com/forum/

  40. Rich

    that is a wonderful piece of kit. thank you so much to whoever created it.

  41. ISawRed

    Thanks a lot this is awesome!!!! Works great!!!

  42. Mike Salkin

    Yes, it works on Home Premium, however while the files were accessed, right clicking on the folder that held those files did not bring up the Take Possession option.

  43. Stuart A

    I was pulling the last of my hair out trying to find a solution (Home Premium) then I found your website – brilliant!!!!
    It worked!!!!!!!!!!!!!!!!!!!!!!!!
    Many thanks

  44. Prince

    Hi,
    I tried this “take ownership” on a worng file,(tpcps.dll instead of “tabskd.dll”) for getting rid of this “on board screen” appearing on my desktop on every login.Can u please help me in fixing this error,as its still appearing in every startup and please advise is there any problem with for the “tpcps” file by doing the “Take ownership”?(I use HP dv6502au laptop)

    Thanks in advance
    Regs
    Prince

  45. jd2066

    @Prince: Here is how to turn off the automatic startup of the on-screen keyboard:
    1. Open Control Panel.
    2. Click Ease of Access.
    3. Click Ease of Access Center.
    4. Click Use the computer without a mouse or keyboard.
    5. Uncheck Use On-Screen Keyboard.
    6. Click Save.

  46. John

    Is it only me or did the open as administrator option disappear with this enabled?

  47. nocashgx

    I’m logged in as an administrator and I’ve installed the take ownership thingy but when I right click on my windows media player folder i can take ownership but it still tells me I need permission to delete the file. Am I doing something wrong can somebody help??? T_T

  48. nocashgx

    I need help because I want to delete my WMP folder because the program doesn’t work.

  49. Clue-Less

    Anyway of keeping the command prompt OPEN after the command has been issued? I would like to know what is being done and if any errors exist but cmd.exe quickly closes. Thanks

  50. HELP!!

    Ok I download the program and I’m still getting the message “you need permission to perform this act.” when im trying to delete this program that is not working and need to reuninstall it. Already tried from control panel and cant.

  51. jd2066

    @HELP!!: Just follow the steps listed under Uninstall at the end of this guide.

  52. Paul

    If your using vista you have to Start>Run>regedt32
    Then File>Import the install.reg file your done.

  53. LittleToucan

    I joined your forum just so I could say thank you. This is fantastic! I can now view system folders that were forbidden before. This saves a lot of time hunting around looking for alternate routes into these folders. Thank you so much.

  54. Brandon

    Thank you so much! This is sweet!

  55. Vinay

    That’s What I was looking for.
    it works great and it’s too simple!
    Awesome!
    Thanks to the creator of these two files!

  56. Wes

    I installed it, and it is great, but i have an issue still.

    whenever I launch it, it says that the publisher could not be verified, and therefore, i have to hit run every time i open it.

    Any way to fix this?

    thank you,
    Wes

  57. nasko

    Well, thanks it works like a charm…

    So I can bear the Window$ Vista now… barely!

    Thanks…

  58. Peter

    You have to use shift left click on Vista ultimate 64 but works brilliantly otherwise.

  59. Meg

    Ok so I downloaded this last night, it worked great. Now it says I have to have Admin privileges for everything. I can’t even get into the control panel. it even says I have to have admin privileges to take control of take control. Any help?

  60. Meg

    I also can’t create a restore point. It says that either the file location has been lost or I don’t have proper permission. any help?

  61. Hassan

    Thanks , it works.

  62. Terry Lee Gonzalez

    Hey, I just wanted to thank you for the quality of information you put up here on this site. I do a lot of searching on the ‘Net when I have a problem, and I am amazed at the number of times I’ve arrived at your website with a problem, but left WITHOUT a problem.

    I love the visual aids and your communication style. Just an all around great site and a huge public service. It’s people like you who make the world a better place!

  63. Martin

    Great! It worked for the first few files, but then went back to normal with the you need permission box, even after taking ownership of the whole drive!

    What does seem to work, is to copy the folder you need to move, then paste it into the destination folder, go back to the original and delete the files inside, then you’ll be able to delete the folder that needs permission to move.

    This is ridiculous!!

  64. Hurrycane

    has someone tried it on Win Vista x64?
    Seems like it don’t works on Vista 64.

    I wanted to rename some systemfiles , but there comes a Pop-Up with “Bla bla you have no rights for this action” and i can press “Take Ownership” hundred times, it wont work.

    is this version only for 32Bit ?

  65. Colleen

    You are a beaut!!!! Thank you, what a pleasure!!!!

  66. ccl

    I downloaded this program a year ago. I just want you to know it continues to be the best download I have ever used. Don’t know if you ever found out who wrote this program – but I’d willingly contribute to that website!

  67. dave

    didn’t work at all… trying to uninstall a program, getting the 1321 error. i “took ownership” of the folder in question, and still could not uninstall, or even just delete the folder that the program is in. i wish this how-to actually had some information in it, instead of just saying how to install and uninstall the program. thanks for nothing.

  68. jan

    EN:
    This Reg File only works on English Vista Installs… I have modified it for German Installs: -> Look here:

    DE:
    Diese Reg File funzt nur auf englischen Vista Installationen. Für deutsche installationen schaut hier:

    http://www.ja-we.de/blog/2009/.....ntextmenu/

  69. fox

    many thanks! this enabled me to gain access to my files from my old notebook that won’t reboot last week. it’s the best download I have ever used!

  70. mike

    semmed like the perfect fix but still have a problem. ran the hack and everything wizzed by but still no access. ***i did have the folder in the xp drive some sort of protected, all folder entries are green. its about 5,000 appraisal pictures*** been working two full days, secret admin login, gave full permission to everyone, nothing!!! I WILL PAY FOR A FIX AT THIS POINT, NEED TO GET BACK TO WORK ASAP AND EVERY APPRAISAL SEEKS THIS FOLDER OUT TO LINK PICTURES. THANKS

  71. Scott

    great help! been trying to access my laptops hdd for hours now, soon as i tried this it’s working straight away.

    cheers!

  72. Scott

    by the way, i installed this script on my Windows 7 machine, works great.

  73. Scott

    You are an absolute legend mate, absolute superstar,

    Thanks

  74. Shania

    As Scott said ..works on Windows 7 x64 also..

  75. Al

    Thanks for this! I’m trying to convert Microsoft word 2007 trial to the full version and I need ownership first. When I get to the registry editor and click yes it says there’s an error accessing the registry. HELP!

  76. Ian Pride (Lateralus)

    This is exactly what I needed. Thank you.

  77. J. Woolley

    Here is a command script version that is a little more versatile. Make a shortcut to TakeOwnership.cmd, then you can drag and drop files and/or folders on the shortcut to take ownership of them.

    The contents of TakeOwnership.cmd follows:
    ——————————————
    @echo OFF

    :Begin
    if ‘%1′==’/?’ echo Usage: %0 [Names of one or more files and/or folders] && pause && exit
    if ‘%1′==” echo There are no more command line arguments. && pause && exit
    if not exist %1 echo %1 is not a file or folder. && pause && goto Next

    echo This script will take ownership of %1.

    pushd .
    pushd %1 2>NUL
    if ERRORLEVEL 1 goto File

    popd
    echo %1 is a folder.
    echo This script can take ownership of a folder with recursion;
    echo i.e., it can take ownership of all files and subfolders in a folder.
    choice /m “Do you wish to take ownership of this folder with recursion ”
    if not ERRORLEVEL 2 goto Recursion

    choice /m “Do you wish to take ownership of this folder without recursion ”
    if not ERRORLEVEL 2 goto NoRecursion

    goto Next

    :Recursion
    takeown /f %1 /r /d Y
    icacls %1 /grant administrators:F /t
    goto Next

    :File
    echo %1 is a file (not a folder).
    choice /m “Do you wish to take ownership of this file ”
    if ERRORLEVEL 2 goto Next

    :NoRecursion
    takeown /f %1
    icacls %1 /grant administrators:F

    :Next
    echo.
    shift
    goto Begin
    ——————————————

  78. Ian Pride

    @J. Woolley: Thanx for that. It will be quite handy.

  79. Radhika

    After Installation, I checked by right-clicking. It wasn’t there. I’m going to try rebooting.

  80. john

    i’m using this on vista ultimate 64bit and it works fine. i do believe i had to reboot first before it showed up though.

  81. Frata

    This works perfectly on Win 7 beata Ultimate :)

  82. Radhika

    It worked after the Reboot!

  83. Imemine

    This didn’t work on my Vista laptop. I installed it and it did its thing but then it said operating systems stopped working. Any ideas? I can’t get access to files I created in word via my laptop. There is only me on this laptop, no one else uses it.

    thanks

  84. Tom

    ISSUE UNDER SOME VISTA VERSIONS SOLVED!!!!

    If you still can not edit/delete/rename/whatever your file, although you have edited it with “Take Ownership” just go to properties of this file and set down the user rights to full access manually!
    “Take Ownership” can just allow you to edit this access rights, so you have to edit them by yourself.

    File -> Properties -> Safety -> Advanced -> Edit -> Then set all right to “Full Access” -> OK…

    (Sorry, I have the german windows version, so I do not know how the buttons are named in the englisch version)

  85. visit ultimatetweakers.webs.com

    this is great for deleting fonts i hate, thanks

  86. Tim G

    Thank you! Damn I hate VISTA!

  87. dp

    a million thanks!!! omg
    saved me so much

  88. michelexcore

    IM IN LOVE thankyou soooo much for this program it was amazing just instal and then go into c and find the file that ur getting the error in right click the whole file and bam ur the owner hehe super awesomeness

  89. Truc

    oh thanks so much for this – it works perfectly on Vista Home thanks!!!

  90. Shooter902

    Careful with this..I installed it and now my handler is screwed up in Vista, Shortcuts in the start menu no longer work?? Can’t find a good fix either. If someone has one I would appreciate a link..Thanks :-)


Leave a Comment




Leave your friendly comment here.

If you have a computer help question, click here to leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Sponsored Links
Getting Started
About How-To Geek
What Is That Process?
svchost.exe
jusched.exe
dwm.exe
ctfmon.exe
wmpnetwk.exe
wmpnscfg.exe
rundll32.exe
wfcrun32.exe
Ipoint.exe
Itype.exe
Wfica32.exe
Mobsync.exe
Cmd.exe
Dpupdchk.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. All Rights Reserved.