Windows操作系统的文件目录结构在主要版本中没有太大变化。您将在Windows文件夹中找到核心系统文件,在(Windows)Users文件夹中找到用户配置文件数据,在Program Files和Program Files ( x86 ) 文件夹中找到程序文件。
但是, Microsoft Store(Microsoft Store)应用程序呢?与其他桌面应用程序不同,Microsoft Store应用程序仍然隐藏在一个秘密的WindowsApps文件夹中。Windows限制从标准(Windows)Windows用户帐户访问此文件夹,因此要以任何方式查看或编辑它,您需要进行一些更改。这是您需要做的。
Windows 10 中的 WindowsApps 文件夹是什么?(What is the WindowsApps Folder in Windows 10?)
正如我们所提到的, WindowsApps文件夹是一个包含Microsoft Store应用程序的受限文件夹。它还包含一些使用通用 Windows 平台(Universal Windows Platform)((Windows) UWP )(UWP)应用程序样式(如Windows 8中介绍的)的 Windows 应用程序,例如Your Phone 应用程序 (yourphone.exe)(Your Phone app (yourphone.exe))。
从安全的角度来看,限制WindowsApps文件夹是有意义的。通过将Microsoft Store(Microsoft Store)应用程序从Windows的其余部分沙盒化,并将文件的所有权限制为隐藏的TrustedInstaller用户帐户,与标准桌面应用程序相比, Microsoft Store应用程序对(Microsoft Store)Windows其余部分的访问受到限制。
不幸的是,这确实意味着对WindowsApps文件夹进行任何更改(或根本查看它)是很困难的。您需要先采取措施取得文件夹的所有权,然后才能更改文件夹。
但是,在尝试此操作之前考虑安全风险很重要。虽然Microsoft审查应用程序的质量和安全性,但限制对WindowsApps文件夹的访问会增加另一层保护,防止访问其他敏感文件或文件夹(例如 C:Users 目录中的用户配置文件文件夹)。
通过获取文件夹的所有权,你将减少这种额外的保护,并将更多的系统数据暴露给Microsoft Store应用程序。如果您担心,您应该事后扫描恶意软件(scan for malware)以让自己高枕无忧。
使用 Windows 文件资源管理器访问 WindowsApps 文件夹(Using Windows File Explorer to Access the WindowsApps Folder)
要访问Windows 10中的(Windows 10)WindowsApp文件夹,最简单的方法是使用Windows 文件资源管理器(Windows File Explorer)。您需要启用隐藏文件夹的查看功能并获得该文件夹的所有权,让您能够查看该文件夹并进行更改。
- 首先,在Windows PC上打开文件资源管理器。(File Explorer)Windows默认隐藏某些文件夹,因此您需要先禁用它。为此,请选择View > Hidden items。这将导致隐藏的文件和文件夹出现在右侧的目录列表中。
- 在可访问隐藏文件夹的情况下,使用地址栏打开Program Files目录(通常是C:\Program FilesWindowsApp文件夹应该在目录列表中可见。
- 要控制WindowsApps,请右键单击文件夹并选择Properties。
- 在“属性(Properties)”窗口中,选择“安全(Security )”选项卡,然后选择“高级(Advanced)”选项。
- 在“高级安全设置”(Advanced Security Settings )窗口中,选择顶部所有者(Owner)信息旁边列出的“更改”按钮。(Change)
- 在“选择用户或组(Select User or Group )”框中,键入您的Windows用户帐户的用户名,然后选择“检查名称”(Check Names) ,然后选择“确定(OK)” 。对于Microsoft帐户,请键入您的电子邮件地址。
- 文件夹的所有权将更新以反映您的用户名(如窗口顶部的所有者信息所示)。(Owner)确保启用菜单顶部的替换子容器和对象的所有者复选框。(Replace owner on subcontainers and objects)如果您愿意继续,请选择OK(或Apply > OK)进行更改。
- 您现在应该能够查看和编辑WindowApps文件夹以及所有子文件夹和文件。双击C:\Program FilesWindowsApps文件夹以查看完整内容。
使用 Windows PowerShell 访问 WindowsApps(Gaining Access to WindowsApps using the Windows PowerShell)
上面的方法将授予您对WindowsApps文件夹的访问权限并允许您获得所有权,但遵循它可能是一个相当麻烦的过程。如果要快速更改WindowsApps文件夹的所有权并获得完全访问权限,可以改用Windows PowerShell。
- 要打开新的PowerShell窗口,请右键单击开始(Start)菜单并选择Windows PowerShell (Admin)选项。
- 在新的 PowerShell 窗口中,键入takeown /f “C:\Program Files\WindowsApps” /r 并按Enter。这需要一些时间才能完成。通过使用/f (强制)和/r(递归)标志,takeown命令将强制更改WindowsApps文件夹的所有权,并将更改应用于所有文件和子文件夹。
该过程完成后,您可以在Windows 文件资源管理器中访问(Windows File Explorer)WindowsApps文件夹 (C:Program Files\WindowsApps ) 。
了解 WindowsApps 文件夹结构(Understanding the WindowsApps Folder Structure)
与Program Files 文件(Program Files)夹不同,WindowsApp文件夹不是由简单的应用程序名称构成的。WindowsApps中的Microsoft Store应用程序文件夹将具有通常遵循此模式的命名结构:名称、版本号、体系结构(name, version number, architecture)(例如标准 64 位 CPU PC 的x64 )和(x64)Microsoft Store 发布者 ID(Microsoft Store publisher ID)。
例如,Netflix应用程序文件夹被命名为4DF9E0F8.Netflix_6.97.752.0_x64__mcm4njqhnhss8。4DF9E0F8.Netflix组件是内部应用程序名称,而6.97.752.0(4DF9E0F8.Netflix )是应用程序版本 。(6.97.752.0 )
架构x64指向常见的 64 位CPU架构,而mcm4njqhnhss8是Netflix的发布者 ID 。WindowsApps文件夹中的所有应用程序文件夹都会以某种方式遵循此结构。
您可能还会看到一些具有多个文件夹的应用程序。虽然名称、应用程序版本和发布者 ID 保持不变,但某些文件夹的架构将具有中性(neutral )或中性_split.scale(neutral_split.scale )。这通常指向保持不变的通用数据文件(例如应用程序元数据),无论目标架构如何。
然而,核心文件位于主架构文件夹(例如x64文件夹)中。某些应用程序可能具有可以直接运行的可执行文件(executable files),而其他应用程序是 Web 应用程序,其中包含可见的 javascript 和其他 Web 资产。
(Netflix)例如,Netflix是一个基于网络的应用程序。在核心Netflix x64目录中,标有js、图像、字体(js, images, fonts, )和obj的文件夹指向其来源,带有 javascript 和HTML代码。其他应用程序,如Microsoft Bing 新闻(Microsoft Bing News)应用程序,带有可执行文件和动态链接库 ( DLL ) 文件,类似于标准桌面应用程序。
如果您好奇,您可以查看各个子文件夹以了解您安装的应用程序的工作原理,但您将无法对代码进行任何更改。
对 Windows 10 上的 Microsoft Store 应用程序进行故障排除(Troubleshooting Microsoft Store Apps on Windows 10)
获得对WindowsApps文件夹的访问权限后,您可以浏览已安装的不同Microsoft Store应用并(如有必要)将其删除。某些应用程序(例如 yourphone.exe)是您不应删除的核心Windows应用程序,而其他应用程序(例如您自己从(Windows)应用商店(Store)安装的应用程序)可以安全卸载。
不过,最好通过Microsoft Store本身或使用Windows 设置(Windows Settings)菜单卸载 Microsoft Store 应用程序。(uninstall Microsoft Store apps)如果您在更新自己安装的应用程序时遇到问题,您可能需要查看原因,包括检查Microsoft Store 下载速度是否缓慢(slow Microsoft Store downloads)。
How to Access the Windowsapps Folder in Windows 10
The Windows operating system hаs a file directory structure that hasn’t сhanged much across major releаses. You’ll find the core system files in the Windows folder, user profile data in the Users folder, and program files in the Program Files and Program Files (x86) folders.
What about Microsoft Store apps, however? Unlike other desktop apps, Microsoft Store apps remain hidden in a secret WindowsApps folder. Windows limits access to this folder from standard Windows user accounts, so to view or edit it in any way, you’ll need to make some changes. Here’s what you’ll need to do.
What is the WindowsApps Folder in Windows 10?
The WindowsApps folder, as we’ve mentioned, is a restricted folder containing Microsoft Store apps. It also contains some Windows apps that use the Universal Windows Platform (UWP) app style (as introduced in Windows 8), such as the Your Phone app (yourphone.exe).
From a security point of view, restricting the WindowsApps folder makes sense. By sandboxing Microsoft Store apps from the rest of Windows, and limiting ownership of the files to a hidden TrustedInstaller user account, Microsoft Store apps have limited access to the rest of Windows compared to standard desktop apps.
Unfortunately, this does mean that making any changes to the WindowsApps folder (or viewing it at all) is difficult. You’ll need to take steps to take ownership of the folder first, allowing you access to change the folder afterwards.
However, it’s important to consider the security risks before you attempt this. While Microsoft vets apps for quality and safety, limiting access to the WindowsApps folder adds another layer of protection, preventing access to other sensitive files or folders (such as your user profile folder in the C:\Users directory).
By taking ownership of the folder, you’re reducing this added protection, and exposing more of your system data to Microsoft Store apps. If you’re concerned, you should scan for malware afterwards to offer yourself peace of mind.
Using Windows File Explorer to Access the WindowsApps Folder
To access the WindowsApp folder in Windows 10, the easiest method is to use Windows File Explorer. You’ll need to enable the viewing of hidden folders and take ownership of the folder, giving you the ability to view the folder and make changes.
- To start, open File Explorer on your Windows PC. Windows hides certain folders by default, so you’ll need to disable this first. To do this, select View > Hidden items. This will cause hidden files and folders to appear in the directory list on the right.
- With hidden folders accessible, open the Program Files directory (usually C:\Program Files) using the address bar. The WindowsApp folder should be visible in the directory list.
- To take control of WindowsApps, right-click the folder and select Properties.
- In the Properties window, select the Security tab, then select the Advanced option.
- In the Advanced Security Settings window, select the Change button, listed next to the Owner information at the top.
- In the Select User or Group box, type the username for your Windows user account, then select Check Names before selecting OK. For Microsoft accounts, type your email address instead.
- Ownership of the folder will update to reflect your username (as seen in the Owner information at the top of the window). Make sure to enable the Replace owner on subcontainers and objects checkbox at the top of the menu. If you’re happy to proceed, select OK (or Apply > OK) to make the change.
- You should now be able to view and edit the WindowApps folder, along with all sub-folders and files. Double-click the WindowsApps folder in the C:\Program Files directory to view the full contents.
Gaining Access to WindowsApps using the Windows PowerShell
The method above will grant you access to the WindowsApps folder and allow you to take ownership, but it can be quite a cumbersome process to follow. If you want to quickly change ownership of the WindowsApps folder and gain full access, you can use Windows PowerShell instead.
- To open a new PowerShell window, right-click the Start menu and select the Windows PowerShell (Admin) option.
- In the new PowerShell window, type takeown /f “C:\Program Files\WindowsApps” /r and press Enter. This will take some time to complete. By using the /f (force) and /r (recursive) flags, the takeown command will force ownership of the WindowsApps folder to change, applying the change to all files and subfolders.
Once the process is complete, the WindowsApps folder (C:\Program Files\WindowsApps) will be accessible to you in Windows File Explorer.
Understanding the WindowsApps Folder Structure
Unlike the Program Files folder, the WindowsApp folder isn’t structured by a simple app name. A Microsoft Store app folder in WindowsApps will have a naming structure that typically follows this pattern: name, version number, architecture (such as x64 for standard 64-bit CPU PCs), and Microsoft Store publisher ID.
For example, the Netflix app folder is named 4DF9E0F8.Netflix_6.97.752.0_x64__mcm4njqhnhss8. The 4DF9E0F8.Netflix component is the internal app name, while 6.97.752.0 is the app version.
The architecture, x64, points to the common 64-bit CPU architecture, while mcm4njqhnhss8 is the publisher ID for Netflix. All app folders in the WindowsApps folder will, in some way, follow this structure.
You may also see some apps with more than one folder. While the name, app version, and publisher ID remain the same, some folders will have neutral or neutral_split.scale for architecture. This usually points to common data files (such as app metadata) that remain the same, regardless of the target architecture.
Core files, however, are found in the main architecture folder (such as the x64 folder). Some apps may have executable files you can run directly, while others are web apps, with javascript and other web assets visible.
Netflix, for instance, is a web-based app. Inside the core Netflix x64 directory, folders labelled js, images, fonts, and obj point to its origins, with javascript and HTML code. Other apps, like the Microsoft Bing News app, come with an executable file and dynamic link library (DLL) files instead, similar to standard desktop apps.
If you’re curious, you can take a look around the various sub-folders to gain an understanding of how the apps you install work, but you won’t be able to make any changes to the code.
Troubleshooting Microsoft Store Apps on Windows 10
Once you gain access to the WindowsApps folder, you can explore the different Microsoft Store apps that you have installed and (if necessary) remove them. Some apps, like yourphone.exe, are core Windows apps that you shouldn’t remove, while others (like those you install from the Store yourself) can be uninstalled safely.
It’s probably best to uninstall Microsoft Store apps through the Microsoft Store itself or by using the Windows Settings menu, however. If you’re having trouble updating apps you’ve installed yourself, you may need to look at why, including checking for slow Microsoft Store downloads.