{"id":26839,"date":"2023-01-04T20:31:57","date_gmt":"2023-01-04T19:31:57","guid":{"rendered":"https:\/\/ekiwi-blog.de\/?p=26839"},"modified":"2023-01-04T20:32:02","modified_gmt":"2023-01-04T19:32:02","slug":"windowsapps-setting-up-access-via-powershell","status":"publish","type":"post","link":"https:\/\/ekiwi-blog.de\/en\/26839\/windowsapps-setting-up-access-via-powershell\/","title":{"rendered":"WindowsApps: Setting up access via Powershell"},"content":{"rendered":"<p>How can I get access to the WindowsApps folder? E.g. to copy files from the WindowsApps folder?<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of content<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekiwi-blog.de\/en\/26839\/windowsapps-setting-up-access-via-powershell\/#What_is_the_WindowsApps_folder\" >What is the WindowsApps folder?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekiwi-blog.de\/en\/26839\/windowsapps-setting-up-access-via-powershell\/#Make_WindowsApps_folder_visible\" >Make WindowsApps folder visible<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ekiwi-blog.de\/en\/26839\/windowsapps-setting-up-access-via-powershell\/#WindowsApps_folder_%E2%80%93_access_denied\" >WindowsApps folder &#8211; access denied<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ekiwi-blog.de\/en\/26839\/windowsapps-setting-up-access-via-powershell\/#Set_up_access_to_the_folder_using_Powershell\" >Set up access to the folder using Powershell<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/ekiwi-blog.de\/en\/26839\/windowsapps-setting-up-access-via-powershell\/#Restrictions\" >Restrictions<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What_is_the_WindowsApps_folder\"><\/span>What is the WindowsApps folder?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The WindowsApps folder is a special folder of Windows. This is where the apps from the WindowsStore are stored. It is located under &#8220;c:\\Program Files\\WindowsApps&#8221;. It belongs to the folders, which Windows puts under special observation and normally does not allow access.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Make_WindowsApps_folder_visible\"><\/span>Make WindowsApps folder visible<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If we want to access the folder, we must first change the folder options of Explorer. The folder is hidden and therefore will not be displayed. Enable the &#8220;Show hidden files, folders and drives&#8221; setting.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/windows_apps_en_1.png\" alt=\"\" width=\"382\" height=\"475\" class=\"aligncenter size-full wp-image-26840\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/windows_apps_en_1.png 382w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/windows_apps_en_1-241x300.png 241w\" sizes=\"auto, (max-width: 382px) 100vw, 382px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"WindowsApps_folder_%E2%80%93_access_denied\"><\/span>WindowsApps folder &#8211; access denied<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The folder is now displayed, but access is not possible. We only get the terse message that we currently do not have permission to access it. Although we can click &#8220;Continue&#8221; with admin rights, access is still denied.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/windows_apps_en_2.png\" alt=\"\" width=\"707\" height=\"185\" class=\"aligncenter size-full wp-image-26842\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/windows_apps_en_2.png 707w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/windows_apps_en_2-300x79.png 300w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Set_up_access_to_the_folder_using_Powershell\"><\/span>Set up access to the folder using Powershell<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To allow our user access to the folder, we can use Powershell. Of course, the current user must also have admin privileges. Using the Start menu, we call Powershell, with admin rights.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/windows_apps_en_3.png\" alt=\"\" width=\"692\" height=\"470\" class=\"aligncenter size-full wp-image-26844\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/windows_apps_en_3.png 692w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/windows_apps_en_3-300x204.png 300w\" sizes=\"auto, (max-width: 692px) 100vw, 692px\" \/><\/p>\n<p>Here we now enter the following command:<\/p>\n<pre>\r\ntakeown \/f \"C:\\Program Files\\WindowsApps\" \/r\r\n<\/pre>\n<p>A lot of output will follow. At the end, we can access the folder through the explorer. If the message appears that we don&#8217;t have permission, we click &#8220;Continue&#8221;. This time it should work.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/windows_apps_en_4.png\" alt=\"\" width=\"736\" height=\"165\" class=\"aligncenter size-full wp-image-26846\" srcset=\"https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/windows_apps_en_4.png 736w, https:\/\/ekiwi-blog.de\/wp-content\/uploads\/2023\/01\/windows_apps_en_4-300x67.png 300w\" sizes=\"auto, (max-width: 736px) 100vw, 736px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Restrictions\"><\/span>Restrictions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Even though we now have access to the folder, there are some things which still do not work. We can access files, copy them or even delete them. New folders and files cannot be created. Existing files can also not be edited.<\/p>","protected":false},"excerpt":{"rendered":"<p>How can I get access to the WindowsApps folder? E.g. to copy files from the WindowsApps folder?<\/p>\n","protected":false},"author":1,"featured_media":14619,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1555],"tags":[1558],"class_list":["post-26839","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software-en","tag-windows-en"],"_links":{"self":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/26839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/comments?post=26839"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/posts\/26839\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media\/14619"}],"wp:attachment":[{"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/media?parent=26839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/categories?post=26839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi-blog.de\/en\/wp-json\/wp\/v2\/tags?post=26839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}