Policy
Limit the size of the entire roaming user profile cache
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: WindowsServer2008
This policy setting allows you to limit the size of the entire roaming user profile cache on the local drive. This policy setting only applies to a computer on which the Remote Desktop Session Host role service is installed. Note: If you want to limit the size of an individual user profile, use the "Limit profile size" policy setting located in User Configuration\Policies\Administrative Templates\System\User Profiles. If you enable this policy setting, you must specify a monitoring interval (in minutes) and a maximum size (in gigabytes) for the entire roaming user profile cache. The monitoring interval determines how often the size of the entire roaming user profile cache is checked. When the size of the entire roaming user profile cache exceeds the maximum size that you have specified, the oldest (least recently used) roaming user profiles will be deleted until the size of the entire roaming user profile cache is less than the maximum size specified. If you disable or do not configure this policy setting, no restriction is placed on the size of the entire roaming user profile cache on the local drive. Note: This policy setting is ignored if the "Prevent Roaming Profile changes from propagating to the server" policy setting located in Computer Configuration\Policies\Administrative Templates\System\User Profiles is enabled.
Registry values
How enabled and disabled states update the registry.
| Registry location | Type | Enabled value | Disabled value |
|---|---|---|---|
| HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\DeleteRoamingUserProfile | REG_DWORD | 1 | 0 |
Policy elements
Inputs and configuration options exposed by this policy.
| Element | Type | Registry mapping | Constraints & behavior |
|---|---|---|---|
Monitoring interval (minutes): ID TS_PROFILE_DIRECTORY_MONITORING_INTERVAL | decimal | HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\MonitoringInterval Type REG_DWORD | Range: 15 to 10080 |
Maximum cache size (GBs): ID TS_PROFILE_DIRECTORY_QUOTA | decimal | HKLM\SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services\ProfileDirectoryQuota Type REG_DWORD | Range: 5 to 10000 |
Other policies in this category
Explore related policies at the same level.