Recently we started to use Windows 10 Storage sense in all of our PC. Storage sense is an optional feature, which is disabled by default, but when enabled, it’ll proactively delete temporary files, like those created by apps. It’ll delete files that have been in the recycle bin for more than 30 days, as well as files in the downloads folder that haven’t changed in 30
If the PC start to running low on space, Storage Sense even includes an option to delete the previous version of Windows 10 to make more room.
We have been okay with the above process. Now we are planning to automate the process of enable storage sense in all the domain profiles. Because our use often change their PC or sometimes we have to create them a new profiles. We just want to make sure we didn’t left the PC without enabling storage sense.
So, I will be very appreciate if anyone share any tips to enable storage sense using GPO, scripts or registry etc.,
Starting with Windows 10 build 17074, it is possible to run Storage Sense automatically when you are low on disk space. There are a number of presets which can use to schedule disk cleanup. This will allow you to remove redundant files automatically when required. The appropriate options can be found under Settings > System > Storage > Configure Storage Sense or run it now .
On the next page, you can specify when to run Storage Sense automatically or run it manually.
There is a special Group Policy option that allows you to specify when to run the Storage Sense cleanup procedure for all users. You can force enable the Every day, Every week, Every month, or During low free disk space schedule. Here is how.
To make Storage Sense Run Automatically in Windows 10 using Group Policy,
Press Win + R keys together on your keyboard and type:
gpedit.msc
Press Enter.
2. Group Policy Editor will open. Go to Computer Configuration\Administrative Templates\System\Storage Sense . Enable the policy option Configure Storage Sense cadence .
3. Under Run Storage Sense , select Every day, Every week, Every month, or During low free disk space according to what you want.
Note: The Local Group Policy Editor app is only available in Windows 10 Pro, Enterprise, or Education edition. For other editions, you can use a Registry tweak described below.
Tip: See how to jump to the desired Registry key with one click.If you do not have such a key, then just create it.
3. Here, create a new 32-bit DWORD value ConfigStorageSenseGlobalCadence . Note: Even if you are running 64-bit Windows, you still need to use a 32-bit DWORD as the value type.
Set it to one of the following values in decimals:
0 - During low free disk space
1 - Every day
7 - Every week
30 - Every month
4. To make the changes done by the Registry tweak take effect, restart Windows 10.