Limit the size of the entire roaming user profile cache
Jump to overview

Policy overview

Key metadata and intent for this policy.

Computer
Category
Windows Components > Remote Desktop Services > Remote Desktop Session Host > Profiles
Supported on
At least Windows Server 2008 R2

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.

Internal name
TS_DELETE_ROAMING_USER_PROFILES
Policy ID
3dc6b02ed86a
Elements
2

Registry values

How enabled and disabled states update the registry.

ScopeRegistry locationTypeEnabled valueDisabled valueCopy
Computer
Path
SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
DeleteRoamingUserProfile
REG_DWORD
HKLM
1
HKLM
0
Registry location
Type REG_DWORD · Computer
Path
SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
DeleteRoamingUserProfile
Hive
HKLM
Enabled value
1
Disabled value
0

Policy elements

Inputs and configuration options exposed by this policy.

ScopeElementTypeRegistry mappingConstraints & behaviorCopy
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
Monitoring interval (minutes):
Computer · Type decimal
Registry mapping
Path
SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
MonitoringInterval
Type
REG_DWORD
Details
Range: 15 to 10080
Maximum cache size (GBs):
Computer · Type decimal
Registry mapping
Path
SOFTWARE\Policies\Microsoft\Windows NT\Terminal Services
Value name
ProfileDirectoryQuota
Type
REG_DWORD
Details
Range: 5 to 10000