changeset 661:cb3bab8fd5fd

Enabled StorageSense to clean "Temporary Files".
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sun, 15 Nov 2020 10:29:33 +0200
parents 18172772343c
children 8fb63ab9e8ba
files win/reg/cleanup.reg
diffstat 1 files changed, 44 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/win/reg/cleanup.reg	Sun Nov 15 10:29:33 2020 +0200
@@ -0,0 +1,44 @@
+Windows Registry Editor Version 5.00
+
+; https://support.microsoft.com/en-us/office/use-onedrive-and-storage-sense-in-windows-10-to-manage-disk-space-de5faa9a-6108-4be1-87a6-d90688d08a48
+
+
+; Via Policy editor, leaf: Computer Configuration\Administrative Templates\System\Storage Sense
+; Setting policy forbids configurations by user.
+[-HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\StorageSense]
+; Policy "Allow Storage Sense"
+; "AllowStorageSenseGlobal"=dword:00000001
+
+[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy]
+; 1 - Enable, 0 - Disable
+"01"=dword:00000001
+; Run Storage Sense (0 - low free space, 1 - every day, 7 - every week, 30 – every month).
+"2048"=dword:00000001
+
+; Delete temporary files (1 - yes, 0 - no).
+"04"=dword:00000001
+
+; Delete files from Recycled Bin (1 - yes, 0 - no).
+"08"=dword:00000001
+; How old files to cleanup from Recycle Bin (1e - 30 days).
+"256"=dword:0000001e
+
+; Do not delete (when 0) old fils from Download folder!
+"32"=dword:00000000
+; Days limit for been removed in not open for 1, 14, 30 (1e), 60 (3c) days.
+"512"=dword:00000000
+
+; To show "Enabled" in UI of "Storage" Settings.
+"StoragePoliciesNotified"=dword:00000001
+
+; https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/cleanmgr
+; https://docs.microsoft.com/en-us/troubleshoot/windows-server/backup-and-storage/automating-disk-cleanup-tool
+; StorageSense calls task "SilentCleanup" from the leaf "\Microsoft\Windows\DiskCleanup".
+; It launches:
+;   %windir%\system32\cleanmgr.exe /autoclean /d %systemdrive%
+; /autoclean options ask to check for parameter "Autorun".
+
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Files]
+"Autorun"=dword:00000001
+[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Temporary Setup Files]
+"Autorun"=dword:00000001