在本文中,我们将讨论停止或使 Storage Sense从(Sense)Windows 11/10下载(Downloads)”文件夹中删除文件的不同方法。Storage Sense是较新版本的磁盘清理(Disk Cleanup),用于监控、管理和优化Windows 11/10 PC上的磁盘存储空间。它通过删除临时文件、回收站文件和其他垃圾文件(Junk files)等文件自动清理磁盘空间。
默认情况下,磁盘清理工具(Disk Cleanup Tool)或存储感知(Storage Sense)不会删除下载(Downloads)文件夹的内容。如果您愿意,可以使用注册表(Registry)或组策略编辑器(Group Policy Editor)停止或使Storage Sense从“(Storage Sense)下载(Downloads)”文件夹中删除文件。让我们看看这些方法。
停止或使存储感知从(Make Storage Sense)下载(Downloads)文件夹中删除文件
以下是可用于配置Storage Sense并使其或阻止其从Windows 11/10下载(Downloads)”文件夹中删除文件的方法:
- 设置应用
- 注册表调整
- 组策略编辑器
让我们详细检查一下这些方法!
1]通过设置更改(Change Storage Sense)下载(Downloads)文件夹的存储感知设置
虽然,Windows 11/10Storage Sense的Downloads文件夹的默认配置设置为Never。但是,您可以使用以下步骤将选项更改或重置为从不。(Never)
在Windows 11中,要停止或使 Storage Sense从“(Sense)下载(Downloads)”文件夹中删除文件,请执行以下操作:
- 打开设置。
- 打开系统设置
- 点击存储
- 导航到存储感知设置。
- (Set)根据需要设置下载(Downloads)文件夹配置。
您拥有的选项是:
设置您的偏好,然后您现在可以关闭“设置”(Settings)应用。
在Windows 10中,打开“设置”应用(open the Settings app),单击“系统(System)”类别,然后导航到“存储(Storage)”选项卡,您将在右侧看到“存储感知”部分。(Storage Sense)
现在,点击顶部显示的选项Configure Storage Sense or run it now。
在下一个窗口中,向下滚动到临时文件( Temporary Files)部分,然后单击“删除我的下载文件夹中的文件...(Delete files in my Downloads folder…) ”下拉选项。
您拥有的选项是:
设置您的偏好,然后您现在可以关闭“设置”(Settings)应用。
Windows 11 用户?(Windows 11 user?)这篇文章将向您展示如何在 Windows 11 中使用 Storage Sense来释放磁盘空间。
2] Storage Sense 下载(Storage Sense Downloads)文件夹的注册表(Registry)调整
您可以使用注册表编辑器应用程序将(Registry Editor)Storage Sense配置为从不删除下载的文件。以下是执行此操作的步骤:
- 打开注册表(Registry)并转到StoragePolicy文件夹。
- 双击(Double-click)32 DWORD并将其值设置为 0。
- 对 512 DWORD 重复步骤 (2)。
- 退出注册表。
- 重启电脑。
首先,在您的 PC 上打开注册表编辑器,然后在应用程序中导航到以下地址:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy
现在,在右侧面板中,您将看到32 DWORD。如果没有看到,请右键单击右侧部分的空白处,从上下文菜单中选择New > DWORD (32-bit) Value选项,并将创建的DWORD命名为 32。
这个值可以是:
- 0 = 从不
- 1 = 1 天
- e(十六进制)= 14 天
- 1e(十六进制)= 30 天
- 3c(十六进制)= 60 天
双击(Double)32 DWORD并根据需要设置值。在数值数据(Value data)字段中输入0会将选项设置为从不(Never)。
接下来,以类似的方式,双击 512 DWORD并将其值设置为 0 或您想要的任何值。
退出注册表编辑器(Registry Editor)应用并重新启动 Windows 10。
3]使用组策略编辑器(Use Group Policy Editor)为下载(Downloads)文件夹配置策略
要创建或阻止 Storage Sense 从下载文件夹中删除文件,您可以使用(Downloads)组策略编辑器(Group Policy Editor)配置相关策略。以下是执行此操作的步骤:
打开组策略编辑器,然后转到Computer Configuration > Administrative Templates > System > Storage Sense。
在右侧,您将看到配置存储存储下载清理阈值(Configure Storage Storage Downloads cleanup threshold)策略。
当 Storage Sense运行时,如果用户的(Sense)下载(Downloads)文件夹中的文件超过一定天数未打开,它可以删除这些文件。
如果组策略“Allow Storage Sense”被禁用,则该策略不起作用。
已启用:您必须提供文件在(Enabled)Storage Sense将其从“(Storage Sense)下载(Downloads)”文件夹中删除之前可以保持未打开的最短天数。支持的值为:0 – 365。如果将此值设置为零,Storage Sense将不会删除用户下载(Downloads)文件夹中的文件。默认值为 0,或从不删除“下载(Downloads)”文件夹中的文件。
禁用或未配置(Disabled or Not Configured):默认情况下,Storage Sense不会删除用户下载(Downloads)文件夹中的文件。用户可以在存储(Storage)设置中配置此设置。
双击它,然后从打开的对话窗口中选择启用选项,并将值设置在 0 到 365 天之间。(Enable)
单击(Click)确定按钮应用更改。
希望本文能帮助您了解不同的方法来制作或阻止 Storage Sense 删除 Windows 11/10 上下载的文件。
相关阅读:(Related reads:)
Stop or Make Storage Sense delete files from Downloads folder
In this article, we will talk about different ways to stop or make Storage Sense delete files from the Downloads folder іn Windows 11/10. Storage Sense is the newer version of Disk Cleanup that is used to monitor, manage, and optimize disk storage space on Windows 11/10 PC. It automatically cleans up disk space by deleting files including Temporary Files, Recycle Bin files, and other Junk files.
By default, Disk Cleanup Tool or Storage Sense does not delete the contents of the Downloads folder. If you wish, you can use Registry or Group Policy Editor to stop or make Storage Sense delete files from the Downloads folder. Let us check out these methods.
Stop or Make Storage Sense delete files from Downloads folder
Here are the methods you can use to configure Storage Sense and make it or prevent it from deleting files from the Downloads folder in Windows 11/10:
- Settings app
- Registry tweak
- Group Policy Editor
Let’s check out these methods in detail!
1] Change Storage Sense settings for Downloads folder via Settings
Although, the default configuration for the Downloads folder for Storage Sense in Windows 11/10 is set to Never. However, you can change or reset the option to Never using the below steps.
In Windows 11, to stop or make Storage Sense delete files from the Downloads folder, do the following:
- Open Settings.
- Open System settings
- Click on Storage
- Navigate to Storage Sense Settings.
- Set the Downloads folder configuration as required.
The options you have are:
- Never
- 1 day
- 14 days
- 30 days
- 60 days.
Set your preference and then you can close the Settings app now.
In Windows 10, open the Settings app, click on the System category, and then navigate to the Storage tab where you will see a Storage Sense section on the right side.
Now, tap on the option present at the top that says Configure Storage Sense or run it now.
In the next window, scroll down to the Temporary Files section and then click on the “Delete files in my Downloads folder…” drop-down option.
The options you have are:
- Never
- 1 day
- 14 days
- 30 days
- 60 days.
Set your preference and then you can close the Settings app now.
Windows 11 user? This post will show you how to use Storage Sense in Windows 11 to free up disk space.
2] Registry tweak for Storage Sense Downloads folder
You can configure Storage Sense to never delete downloaded files using the Registry Editor app. Here are the steps for that:
- Open Registry and go to the StoragePolicy folder.
- Double-click on 32 DWORD and set its value to 0.
- Repeat step (2) for 512 DWORD.
- Exit Registry.
- Reboot PC.
Firstly, open Registry Editor on your PC and then navigate to the following address in the app:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy
Now, in the right panel, you will see a 32 DWORD. If you don’t see one, right-click on the empty space in the right section, select the New > DWORD (32-bit) Value option from the context menu, and name the created DWORD as 32.
The values for this can be:
- 0 = Never
- 1 = 1 day
- e (hex) = 14 days
- 1e (hex) = 30 days
- 3c (hex) = 60 days
Double click on 32 DWORD and set the value as required by you. Entering 0 in the Value data field will set the option to Never.
Next, in a similar manner, double-click on 512 DWORD and set its value to 0 or whatever you want.
Exit the Registry Editor app and restart Windows 10.
3] Use Group Policy Editor to configure policy for Downloads folder
To make or prevent Storage Sense from deleting files from Downloads folders, you can configure a related policy using Group Policy Editor. Here are the steps for that:
Open Group Policy Editor and then go to Computer Configuration > Administrative Templates > System > Storage Sense.
At the right, you will see Configure Storage Storage Downloads cleanup threshold policy.
When Storage Sense runs, it can delete files in the user’s Downloads folder if they haven’t been opened for more than a certain number of days.
If the group policy “Allow Storage Sense” is disabled, then this policy does not have any effect.
Enabled: You must provide the minimum number of days a file can remain unopened before Storage Sense deletes it from the Downloads folder. Supported values are: 0 – 365. If you set this value to zero, Storage Sense will not delete files in the user’s Downloads folder. The default is 0, or never deleting files in the Downloads folder.
Disabled or Not Configured: By default, Storage Sense will not delete files in the user’s Downloads folder. Users can configure this setting in Storage settings.
Double click on it and then select Enable option from the opened dialog window and set the value between 0 – 365 days.
Click on the OK button to apply changes.
Hope this article helped you learn different methods to make or stop Storage Sense from deleting downloaded files on your Windows 11/10.
Related reads: