Policy
Limit the size of the entire roaming user profile cache
Microsoft Windows
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.
| Scope | Registry location | Type | Enabled value | Disabled value | Copy |
|---|---|---|---|---|---|
| Computer | Path SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services Value name DeleteRoamingUserProfile | REG_DWORD | HKLM 1 | HKLM 0 |
Policy elements
Inputs and configuration options exposed by this policy.
| Scope | Element | Type | Registry mapping | Constraints & behavior | Copy |
|---|---|---|---|---|---|
| Computer | Monitoring interval (minutes): ID TS_PROFILE_DIRECTORY_MONITORING_INTERVAL | decimal | Path SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services Value name MonitoringInterval Type REG_DWORD | Range: 15 to 10080 | |
| Computer | Maximum cache size (GBs): ID TS_PROFILE_DIRECTORY_QUOTA | decimal | Path SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services Value name ProfileDirectoryQuota Type REG_DWORD | Range: 5 to 10000 |