Configure Storage Sense using Intune

In this blog post, we’ll explore how to configure Storage Sense on Windows 11 devices using Microsoft Intune. This process involves creating a device configuration profile and assigning it to the Entra security group that contains Windows 11 devices.

What is Storage Sense?

Storage Sense feature in Windows 11 helps to automatically clean up unnecessary files, such as those in the Recycle Bin. By default, when you enable Storage Sense on a Windows device, files are not automatically deleted from your Downloads folder. However, you can configure it to check for files in the Downloads folder and delete them automatically if they haven’t been opened for a specified number of days.

Storage Sense Configuration Settings

To configure Storage Sense on Windows 10/11 devices using Intune admin center. Please follow below steps:

Create Intune configuration profile for Storage Sense
Create Intune configuration profile for Storage Sense
  • Platform: Windows 10 and later
  • Profile type: Settings catalog
  • Click Create to begin with the creation of the device configuration profile.
Select Platform and Profile type
Select Platform and Profile type
  • On the Basics tab, provide a Name and Description of the policy and click Next.
Provide Name and Description of the policy
Provide Name and Description of the policy
  • On the Configuration settings tab, click + Add settings and search for Storage Sense settings in the Settings Picker. Select the Storage sense settings that you want to enable/configure.
Select Storage sense settings using Settings picker
Select Storage sense settings using Settings picker

Policy Setting
Allow Storage Sense GlobalMove the toggle switch to Allow state to enable Storage sense.
Allow Storage Sense Global CadenceBelow values can be provided for this setting. We will leave it at 0, which is the default setting. That means Storage sense will automatically activate when disk space is low. Other values are:

0: During low free disk space (default)
1: Daily
7: Weekly
30: Monthly
Allow Storage Sense Temporary Files CleanupWhen you set this to Allow, Storage Sense will automatically delete Temporary files not in use from the user’s profile.
Config Storage Sense Downloads Cleanup ThresholdThe default is 0, or never deleting files in the Downloads folder. Supported values are from 0-365. This value represent days.

I will be providing a value of 365, that means Storage sense will automatically delete the files from downloads folder which have not been opened/accessed in last 365 days.
Config Storage Sense Recycle Bin Cleanup ThresholdWhen Storage Sense runs, it can delete files in the user’s Recycle Bin that have been there for over a certain number of days. Supported values are: 0–365.

0 – Storage Sense will not delete files from the Recycle Bin.
30 – This is the default value; Storage sense will remove files older than 30 days from the recycle bin.

We will keep the default value of 30 in our policy setting.
Config Storage Sense Cloud Content Dehydration ThresholdWhen Storage Sense runs, it can dehydrate cloud-backed content that hasn’t been opened in a certain number of days. Supported values are: 0–365

0 – If you set this value to zero, Storage Sense will not dehydrate any cloud-backed content.

We will set the value to 90. This means any locally cached copy of the cloud backed content (e.g. in OneDrive) which has not been opened or accessed in last 90 days will be dehydrated.

When we say the file will be dehydrated, it means only the local cached copy will be removed not the cloud backed copy of the file. Access the file to cache it again on your device, if it has been dehydrated.
Configured Storage sense settings on Intune admin center
Configured Storage sense settings on Intune admin center
  • On Scope tags tab, click Next.
  • On Assignments tab, Click on Add groups to select an Entra security group containing Windows 10/11 devices.
Assign the profile to Windows devices
Assign the profile to Windows devices
  • Click Create on Review + create tab to create the Device configuration profile.

Sync Intune Policies

The device check-in process might not begin immediately. If you’re testing this policy on a test device, you can manually kickstart Intune sync from the device itself or remotely through the Intune admin center.

Alternatively, you can use PowerShell to force the Intune sync on Windows devices. Restarting the device is another way to trigger the Intune device check-in process.

How to Force Intune Sync Manually from macOS

End User Experience

After this policy has been applied on the target device, you can sign in on one of the PC and go to Settings > System > Storage > Storage sense. It will be enabled and greyed out as per our deployed configuration.

Storage sense settings enabled and greyed out on Windows device after applying the policy
Storage sense settings enabled and greyed out on Windows device after applying the policy

Leave a Comment