view win/reg/cleanup.reg @ 662:8fb63ab9e8ba

Docs: added introspection commend.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sun, 15 Nov 2020 13:02:40 +0200
parents cb3bab8fd5fd
children
line wrap: on
line source

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".

; Find out leaves with:
;   reg export "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches" clean.reg

[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