{"id":4021,"date":"2016-09-06T17:28:52","date_gmt":"2016-09-06T11:58:52","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=4021"},"modified":"2025-02-11T08:41:19","modified_gmt":"2025-02-11T03:11:19","slug":"take-ownership-via-right-click-context-menu-add","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/take-ownership-via-right-click-context-menu-add\/","title":{"rendered":"Take Ownership of File or Folder via Right-click Menu"},"content":{"rendered":"<p>We saw how to <a href=\"https:\/\/www.winhelponline.com\/blog\/take-ownership-of-file-or-folder\/\">Take Ownership of a file or folder using the takeown.exe<\/a> command-line tool. You can add the &#8220;Take Ownership&#8221; command to the right-click menu to make it easier to access.<!--more--><\/p>\n<h2>Add &#8220;Take Ownership&#8221; to the right-click menu<\/h2>\n<p>Download <a href=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/09\/take_ownership_context_menu.zip\">take_ownership_context_menu.zip<\/a>, unzip the file, and run the enclosed REG file. Click Yes to confirm.<\/p>\n<p>This adds the &#8220;Take Ownership&#8221; command to the right-click menu for files and folders.<\/p>\n<p>To access the menu item, press Shift and right-click on a file or folder. Click &#8220;Take ownership&#8221;. For folders, the command takes ownership and assigns permissions recursively (i.e., for the current folder, files, subfolders, and all files in the subfolders.)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4022\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/09\/take_ownership_context_menu.png\" alt=\"take ownership right-click menu\" width=\"380\" height=\"571\" \/><\/p>\n<p>After the command completes execution, you can see the results in the Command Prompt window.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/09\/takeown_results_cmd.png\" alt=\"take ownership - success - check status\" width=\"749\" height=\"407\" class=\"alignnone size-full wp-image-77860\" \/><\/p>\n<hr>\n<h4>Contents of the REG file<\/h4>\n<pre><code>Windows Registry Editor Version 5.00\n\n;Add Take Ownership command to the context menu\n;Take ownership of a file\/folder, and provide \"Administrators\" group Full Control permissions.\n;For Windows Vista, 7, 8, 8.1, 10 and Windows 11.\n\n[-HKEY_CLASSES_ROOT\\*\\shell\\runas]\n\n[HKEY_CLASSES_ROOT\\*\\shell\\runas]\n@=\"Take Ownership\"\n\"Extended\"=\"\"\n\"HasLUAShield\"=\"\"\n\"NoWorkingDirectory\"=\"\"\n\n[HKEY_CLASSES_ROOT\\*\\shell\\runas\\command]\n@=\"cmd.exe \/k takeown \/f \\\"%1\\\" &amp;&amp; icacls \\\"%1\\\" \/grant *S-1-5-32-544:F\"\n\n[-HKEY_CLASSES_ROOT\\Directory\\shell\\runas]\n\n[HKEY_CLASSES_ROOT\\Directory\\shell\\runas]\n@=\"Take Ownership\"\n\"Extended\"=\"\"\n\"HasLUAShield\"=\"\"\n\"NoWorkingDirectory\"=\"\"\n\"AppliesTo\"=\"NOT (System.ItemPathDisplay:=\\\"C:\\\\Users\\\" OR System.ItemPathDisplay:=\\\"C:\\\\ProgramData\\\" OR System.ItemPathDisplay:=\\\"C:\\\\Windows\\\" OR System.ItemPathDisplay:=\\\"C:\\\\Windows\\\\System32\\\" OR System.ItemPathDisplay:=\\\"C:\\\\Program Files\\\" OR System.ItemPathDisplay:=\\\"C:\\\\Program Files (x86)\\\")\"\n\n[HKEY_CLASSES_ROOT\\Directory\\shell\\runas\\command]\n@=\"cmd.exe \/k takeown \/f \\\"%1\\\" \/r \/d y &amp;&amp; icacls \\\"%1\\\" \/grant *S-1-5-32-544:F \/t \/c\"\n<\/code><\/pre>\n<p>That&#8217;s it. It&#8217;s much easier now to take ownership of a file or folder without manually opening the admin Command Prompt window every time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We saw how to Take Ownership of a file or folder using the takeown.exe command-line tool. You can add the &#8220;Take Ownership&#8221; command to the right-click menu to make it easier to access.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[7],"tags":[441],"class_list":["post-4021","post","type-post","status-publish","format-standard","hentry","category-windows","tag-registry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":264,"url":"https:\/\/www.winhelponline.com\/blog\/take-ownership-of-file-or-folder\/","url_meta":{"origin":4021,"position":0},"title":"Change Ownership of a File or Folder Using Takeown Command-Line Tool","author":"Ramesh","date":"May 3, 2008","format":false,"excerpt":"Every file or folder in an NTFS volume has an owner. Certain system files are owned by TrustedInstaller, some by SYSTEM account, and others by the \"Administrators\" group. If a user creates a file or folder, that user is usually the owner of the file or folder. The owner is\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"Take Ownership using command-line takeown.exe","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/takeown-cmd.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/takeown-cmd.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/05\/takeown-cmd.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":9058,"url":"https:\/\/www.winhelponline.com\/blog\/failed-to-enumerate-objects-in-the-container-ownership\/","url_meta":{"origin":4021,"position":1},"title":"Fix: &#8220;Failed to Enumerate Objects in the Container&#8221; Error","author":"Ramesh","date":"May 6, 2019","format":false,"excerpt":"When you try to open a folder, you may see the message \"You don't currently have permission to access this folder.\u00a0Click Continue to permanently get access to this folder.\" Clicking on the Continue shows the message \"You have been denied permission to access this folder.\u00a0To gain access to this folder\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"failed to enumerate objects in the container - change ownership recursively sub-folders","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/w10-safe-mode-win-re.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":46006,"url":"https:\/\/www.winhelponline.com\/blog\/shellnew-only-folder-listed\/","url_meta":{"origin":4021,"position":2},"title":"New Menu Shows Only &#8220;Folder&#8221; in the Desktop Context Menu","author":"Ramesh","date":"May 14, 2023","format":false,"excerpt":"When you right-click on the desktop and click New, the New menu may only show the \"Folder\" entry. The other options, such as \"Shortcut,\" \"Text document,\" and \"Bitmap image,\" may be missing in the New menu. It's not typical for the Desktop folder to show only the \"Folder\" entry, and\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"new menu lists only folder","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/new-menu-lists-only-folder.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":19688,"url":"https:\/\/www.winhelponline.com\/blog\/compressed-zip-folder-error-file-not-found-no-read-permission\/","url_meta":{"origin":4021,"position":3},"title":"Compressed (Zipped) Folder Error &#8220;File not found or no read permission&#8221;","author":"Ramesh","date":"November 4, 2020","format":false,"excerpt":"When you try to create a compressed (zipped) folder in Windows 10, the following error occurs: Compressed (zipped) Folders Error File not found or no read permission. You may have noticed that this error doesn't happen on drives formatted as FAT32.\u00a0This article explains why this problem occurs and how to\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"compressed folder create error - no read permissions - process explorer","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/11\/procexp-find-locked-files.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/11\/procexp-find-locked-files.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/11\/procexp-find-locked-files.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":34390,"url":"https:\/\/www.winhelponline.com\/blog\/error-1310-writing-file-access-directory\/","url_meta":{"origin":4021,"position":4},"title":"Error 1310: Error writing to file; Verify access to that directory","author":"Ramesh","date":"March 14, 2023","format":false,"excerpt":"When you try to install a program, the installer may encounter the error 1310. The error code 1310 means \"Error attempting to create the destination file.\" Error 1310. Error writing to file: <filename> Verify that you have access to that directory. Cause The error 1310 occurs if the installer cannot\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"error 1310 windows installer","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/03\/error-1310-installer.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":6319,"url":"https:\/\/www.winhelponline.com\/blog\/delete-a-stubborn-file-folder-in-windows\/","url_meta":{"origin":4021,"position":5},"title":"How to Delete a Stubborn Undeletable File or Folder in Windows","author":"Ramesh","date":"July 21, 2018","format":false,"excerpt":"Many of you would have come across situations where you can't delete a file or folder no matter how you try. This article discusses the ways to delete files or folders that are stubborn or undeletable using normal methods. There could be at least 4 reasons you cannot remove those\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"duplicate windows directory - inaccessible","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/duplicate-windows-dir-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/duplicate-windows-dir-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2018\/07\/duplicate-windows-dir-2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/4021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=4021"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/4021\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=4021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=4021"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=4021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}