Policy overview

Key metadata and intent for this policy.

ClassComputer
CategorySystem > User Profiles
Supported onAt least Windows Vista

Supported OS tags: Windows10, Windows10RT, Windows11, Windows7, Windows8, Windows81, WindowsRT, WindowsRT81, WindowsServer2008, WindowsServer2012, WindowsServer2012R2, WindowsServer2016, WindowsVista

This policy setting allows an administrator to automatically delete user profiles on system restart that have not been used within a specified number of days. Note: One day is interpreted as 24 hours after a specific user profile was accessed. If you enable this policy setting, the User Profile Service will automatically delete on the next system restart all user profiles on the computer that have not been used within the specified number of days. If you disable or do not configure this policy setting, User Profile Service will not automatically delete any profiles on the next system restart.

Internal name
CleanupProfiles
Policy ID
ad18ae0fb8b3
Elements
1

Registry values

How enabled and disabled states update the registry.

No explicit registry values are set for enabled or disabled states.

Policy elements

Inputs and configuration options exposed by this policy.

ElementTypeRegistry mappingConstraints & behavior
Delete user profiles older than (days)
ID CleanupProfiles_Days
decimal
HKLM\Software\Policies\Microsoft\Windows\System\CleanupProfiles
Type REG_DWORD
Range: 1 to 99999

Other policies in this category

Explore related policies at the same level.

View all policies in this category