当您在 Windows 11/10 PC 上安装应用程序时,它们需要访问您的文件系统(File System)(即硬盘存储)以定期保存文件。但是,让他们完全访问存储是一个问题。从Windows 11/10开始,您可以阻止已安装的应用程序访问文件系统。这将确保应用程序在不询问您的情况下无法访问您的 Document、Image、OneDrive等文件夹中的文件。
这是Microsoft为Windows 11/10隐私增强功能 的一部分,让您可以控制每一个权限。让我们开始学习如何控制它。
禁止访问此设备上的文件系统
视窗 11
允许应用程序访问文件系统允许它访问您作为用户有权访问的相同文件和文件夹。应用程序必须请求此访问权限,您可以选择允许或拒绝该请求。
- 打开 Windows 设置。
- 转到隐私和安全。
- 向下滚动(Scroll)到应用程序权限(App Permissions)部分。
- 选择文件系统标题。
- 启用或禁用文件系统(System)访问。
- 启用或禁用让(Let)应用程序访问您的文件系统。
视窗 10
要允许或阻止特定应用程序访问文件(File)系统,请按照下列步骤操作 -
- 按Win+I打开 Windows 设置。
- 转到Privacy > File system。
- 前往选择哪些应用程序可以访问您的文件系统(Choose which apps can access your file system)标题。
- 切换相应的按钮。
让我们首先打开Settings > Privacy > File System。在这里,您有两种方法可以做到这一点。
如果您保持启用此功能,则使用此设备的人将能够通过使用他们的设置页面来选择他们的应用程序是否有权访问他们的所有文件,包括他们的文档、图片、视频和本地OneDrive 文件。(OneDrive Files)但是,如果您拒绝权限,它将阻止应用程序访问任何人的文件
如果您的 PC 上没有非常聪明的用户,这很有用,您可以为他们管理它。默认选项是允许。如果要禁用它,请单击更改(Change)按钮,然后关闭切换。
请记住(Remember),当您选择在此处禁用时,它将影响整个操作系统和每个用户。
在Windows 11/10中禁用应用程序访问文件系统(File System)
视窗 11
- 假设您运行的是Windows 11,请同时按Win+I打开Windows Settings。
- 在打开的窗口中,导航到左侧面板下的隐私和安全标题。(Privacy and security)
- 切换到右侧并向下滚动到“应用程序权限(App Permissions)”部分。
- 选择文件系统(File System)标题。
- 启用或禁用文件系统访问(File System access)。
- 启用或禁用让应用程序访问您的文件系统(Let apps access your file system)。
视窗 10
假设您为所有人启用了文件系统访问(File System Access),每个人都可以单独选择禁用应用程序访问Windows 10中的文件系统,即 Document、Image、OneDrive等文件夹,如下所示:
- 转到设置 > 隐私 > 文件系统。
- 禁用允许应用程序访问您的文件系统(Allows apps to access your file system)下的切换开关 。
启用后,您可以单独控制某些应用程序的文件系统访问。这就是我建议您对您不信任的应用程序执行的操作。每个(Every)列出的应用程序都有自己的切换,您可以根据自己的选择启用或禁用。
您可能看不到任何列出的应用程序,但最好在文件中保留此部分的选项卡,这样您的文件就不会受到滥用它的应用程序的影响。
在Windows 10中分别禁用对图片(Pictures)、视频(Videos)和文档的(Documents)访问(Access)
您还可以在隐私(Privacy)下查看图片(Picture)、文档(Document)和视频(Videos)的其他设置。它将为您提供他们可以访问的应用程序列表,您可以选择禁用它们。它与File System(File System)完全相同,但更细化。您可以选择全局禁用或为每个应用禁用。
在禁用对文件系统或单个应用程序的访问时,请始终做出明智的选择。虽然他们为您提供隐私保护,但有时他们确实需要访问权限才能提供最佳体验。
什么是文件系统访问?
文件系统访问 API(File System Access API)允许应用程序,尤其是 Web 应用程序直接读取或保存对用户设备上文件和文件夹的更改。
如何停止访问Windows 11中的文件?
授予对文件系统的访问权限可能会使应用程序访问您要管理的个人内容。正是出于这个原因;Microsoft通过让您选择允许访问文件系统的应用程序,让您可以控制您共享的文件。如果您授予应用程序权限但后来改变主意,您可以关闭该应用程序对您的文件系统的访问。
Let us know how you find this feature!
How to prevent or allow App access to File System in Windows 11/10
When you install apps оn your Windows 11/10 PC, they would need access to your File System i.e. hard drive storage to save files on а regular basis. However, giving them complete access to the ѕtorage is a problem. Starting with Windows 11/10, you can prevent installed apps access to the file system. This will make sure that apps will not able to access files from your Document, Image, OneDrive, etc, folders without asking you.
This is part of the Privacy enhancements Microsoft is bringing to Windows 11/10 letting you control every single permission. Let’s get to learn how you can control it.
Disable access to the file system on this device
Windows 11
Enabling an app to have access to the file system allows it to have access to the same files and folders for which you as a user have permissions. The app must request this access, and you can either choose to allow or deny the request.
- Open Windows Settings.
- Go to Privacy and security.
- Scroll down to the App Permissions section.
- Choose the File System heading.
- Enable or disable File System access.
- Enable or disable Let apps access your file system.
Windows 10
To allow or prevent the specific app from accessing the File system, follow these steps-
- Press Win+I to open Windows Settings.
- Go to Privacy > File system.
- Head to Choose which apps can access your file system heading.
- Toggle the respective button.
Lets first open Settings > Privacy > File System. Here, you have two ways of doing this.
If you keep this enabled, people using this device will be able to choose if their apps have access to all of their files, including their documents, pictures, videos, and local OneDrive Files, by using their settings page. However, if you deny permission, it will prevent apps from access any person’s file
This is useful if you don’t have very smart users on your PC, and you can manage it for them. The default option is Allowed. If you want to disable it, click on the Change button, and then turn off the toggle.
Remember, when you choose to disable here, it will affect the whole operating system and every user.
Disable app access to File System in Windows 11/10
Windows 11
- Assuming you are running Windows 11, press Win+I in combination to open Windows Settings.
- In the window that opens, navigate to Privacy and security heading under the left side panel.
- Switch to the right and scroll down to the App Permissions section.
- Choose the File System heading.
- Enable or disable File System access.
- Enable or disable Let apps access your file system.
Windows 10
Assuming you have File System Access enabled for all, everyone can individually choose to disable app access to file system in Windows 10 i.e Document, Image, OneDrive, etc folders, as follows:
- Go to Settings > Privacy > File System.
- Disable the toggle switch under Allows apps to access your file system.
When you enable it, you can control file system access for certain apps individually. This is what I would recommend you to do with apps you do not trust. Every listed app has its own toggle, and you can enable or disable based on your choice.
It is possible that you may not see any apps listed, but it’s a good idea to keep a tab on this section once in a file so your files are safe from apps which misuse this.
Disable Access to Pictures, Videos & Documents separately in Windows 10
You can also look at other settings for Picture, Document, and Videos, under Privacy. It will give you a list of apps which they can access, and you can choose to disable them. It is exactly the same as File System, but more granular. You can choose to disable globally or for each of the apps.
Always make smart choices when disabling access to either file system or individual apps. While they give you privacy protection, but sometimes they do need access to deliver the best experience.
What is file system access?
The File System Access API allows apps, particularly web apps to read or save changes directly to files and folders on the user’s device.
How do I stop access to files in Windows 11?
Granting access to your file system might give apps access to personal content that you want to manage. It is for this reason; Microsoft gives you control over the files you share by letting you choose which apps you’ll allow accessing your file system. If you give the app permission but change your mind later, you can turn off that app’s access to your file system.
Let us know how you find this feature!