Bring back Storage Sense to the Windows 11 multi-session image
Support for Storage Sense was added back in version 23H2 (or 22H2, apply KB5050092 or later (KB5051989)) for Multi-Session
I did notice that the cadence setting is not enforced when configured trough the Intune Settings Catalog:
Works fine on regular Windows 11 thought.
As a Workaround I just created a scheduled task in my AVD bootstrap pipeline that will check and create the key below on every user login through a VBS wrapper invoking a PowerShell script:
- Path: Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy
- Name: 2048
- Value:
0 = During low free disk space (Default when key is missing)
1 = Every day
7 = Every week
30 (decimal) = Every month
https://learn.microsoft.com/en-us/troubleshoot/windows-server/backup-and-storage/troubleshoot-windows-server-storage-sense#resolution