maciejrebisz.com

IT

How to configure Windows 10 Storage Sense – Mobile-First Cloud-First

maximios September 16, 2019

In Windows 10 1809 Storage sense was introduces it is a cool feature to allow Windows 10 cleanup in local storage on the end user behalf – before Windows 10 1903 there is no way of configure this with a MDM policy. So the solution was to deploy some registry entries with a powershell script from Intune.

The settings that can be configured is:

  • Storage/AllowDiskHealthModelUpdates
  • Storage/AllowStorageSenseGlobal
  • Storage/AllowStorageSenseTemporaryFilesCleanup
  • Storage/ConfigStorageSenseCloudContentDehydrationThreshold
  • Storage/ConfigStorageSenseGlobalCadence
  • Storage/ConfigStorageSenseRecycleBinCleanupThreshold
  • Storage/EnhancedStorageDevices
  • Storage/RemovableDiskDenyWriteAccess

I will not describe em all in this blog post – only those that makes most sense in my experience.

You need to configure AllowStorageSenseGlobal so that Storage Sense will be turned on.
Storage Sense is turned off be default, but if not configured it will be enabled when the disk is running low on free space. Then it will start cleaning temporary files like:

  • Temporary setup files
  • Old indexed content
  • System cache files
  • Internet cache files
  • Device Driver packages
  • System downloaded program files
  • Dated system log files
  • System error memory dump files
  • System error minidump files
  • Temporary system files
  • Dated Windows update temporary files

You can disable cleaning up temporary files by using this setting: AllowStorageSenseTemporaryFilesCleanup

When starting using OneDrive Known Folder Move combined with Files on-demand then this setting come in handy to “delete” data on the device – or more correctly make the files cloud only aka on-demand again

How to configure it in Intune:

Start the Microsoft 3654 Device management portal https://devicemanagement.microsoft.com/

  1. Click  Device Configuration
  2. Click Profiles
  3. Click Create profile
  1. Name : Windows 10 – Custom Storage Sense
  2. Platform : Windows 10 and later
  3. Profile type : Custom
  4. Click Settings Configure
  5. Click Add

If you enable this policy setting without setting a cadence, Storage Sense is turned on for the machine with the default cadence of “during low free disk space.”

  1. Name : AllowStorageSenseGlobal
  2. Description : Turn Storage Sense is on
  3. OMA-URI :  ./Device/Vendor/MSFT/Policy/Config/Storage/AllowStorageSenseGlobal
  4. Data Type : Select Integer
  5. Value : 1

When Storage Sense runs, it can delete the user’s temporary files that are not in use.

  1. Name : AllowStorageSenseTemporaryFilesCleanup
  2. Description : Number of days since a cloud-backed file has been opened before Storage Sense will dehydrate it
  3. OMA-URI :  ./Device/Vendor/MSFT/Policy/Config/Storage/AllowStorageSenseTemporaryFilesCleanup
  4. Data Type : Select Integer
  5. Value : 1

When Storage Sense runs, it can dehydrate cloud-backed content that hasn’t been opened in a certain amount of days.

  1. Name : ConfigStorageSenseCloudContentDehydrationThreshold
  2. Description : Number of days since a cloud-backed file has been opened before Storage Sense will dehydrate it
  3. OMA-URI :  ./Device/Vendor/MSFT/Policy/Config/Storage/ConfigStorageSenseCloudContentDehydrationThreshold
  4. Data Type : Select Integer
  5. Value : 30

When Storage Sense runs, it can delete files in the user’s Downloads folder if they have been there for over a certain amount of days.

  1. Name : ConfigStorageSenseDownloadsCleanupThreshold
  2. Description : Minimum age threshold (in days) of a file in the Downloads folder before Storage Sense will delete it
  3. OMA-URI :  ./Device/Vendor/MSFT/Policy/Config/Storage/ConfigStorageSenseDownloadsCleanupThreshold
  4. Data Type : Select Integer
  5. Value : 90

When Storage Sense runs, it can delete files in the user’s Recycle Bin if they have been there for over a certain amount of days.

  1. Name : ConfigStorageSenseRecycleBinCleanupThreshold
  2. Description : Minimum age threshold (in days) of a file in the Recycle Bin before Storage Sense will delete it
  3. OMA-URI :  ./Device/Vendor/MSFT/Policy/Config/Storage/ConfigStorageSenseRecycleBinCleanupThreshold
  4. Data Type : Select Integer
  5. Value : 7

Storage Sense can automatically clean some of the user’s files to free up disk space. If the Storage/AllowStorageSenseGlobal policy is disabled, then this policy does not have any effect.

  1. Name : ConfigStorageSenseGlobalCadence
  2. Description : Storage Sense cadence
  3. OMA-URI :  ./Device/Vendor/MSFT/Policy/Config/Storage/ConfigStorageSenseGlobalCadence
  4. Data Type : Select Integer
  5. Value : 7

Then you have a complete policy for Storage Sense that you can apply to your end user.

Download import script into Intune : https://github.com/PerLarsen1975/Script_DeployedWithIntune/blob/master/DeviceConfiguration_Add_Windows_Custom%20-%20Storage%20Sense.ps1

How does it looks like from the End user perspective:

In the settings apps under System – Storage

The end user can now see that the settings is managed by your organization.

It is on do to the policy just set – and the end user cannot disable it.

Read more:

Policy CSP – Storage
What’s new in Storage Sense?

Related Posts

IT /

Intune – Windows device enrollment restrictions – Cloud First

IT /

How to add “hidden” Windows UWP to Windows Store for Business – Cloud First

IT /

Office 2016 Active Directory-Based activation – Cloud First

‹ How to set Windows 10 lock screen and background picture with Intune – Mobile-First Cloud-First › About – Mobile-First Cloud-First

Recent Posts

  • Intune – Windows device enrollment restrictions – Cloud First
  • How to add “hidden” Windows UWP to Windows Store for Business – Cloud First
  • Office 2016 Active Directory-Based activation – Cloud First
  • How to deploy Windows Local Experience Packs with Intune – Cloud First
  • Conditional Access for Outlook Web Access (OWA) – Cloud First

Recent Comments

No comments to show.

Archives

  • November 2025
  • October 2025
  • August 2025
  • July 2025
  • June 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • November 2024
  • September 2024
  • July 2024
  • June 2024
  • March 2024
  • December 2023
  • August 2023
  • June 2023
  • March 2023
  • February 2023
  • December 2022
  • September 2022
  • August 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • January 2022
  • December 2021
  • October 2021
  • September 2021
  • August 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • February 2020
  • January 2020
  • December 2019
  • October 2019
  • September 2019
  • June 2019
  • April 2019
  • March 2019
  • February 2019
  • March 2018
  • February 2018
  • December 2017
  • October 2017
  • August 2017

Categories

  • IT

Back to Top

© maciejrebisz.com 2026
Powered by WordPress • Themify WordPress Themes