Delete user profiles older than a specified number of days on system restart
Jump to overview

Policy overview

Key metadata and intent for this policy.

Computer
Category
System > User Profiles
Supported on
At 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.

ScopeElementTypeRegistry mappingConstraints & behaviorCopy
Computer
Delete user profiles older than (days)
ID CleanupProfiles_Days
decimal
Path
Software\Policies\Microsoft\Windows\System
Value name
CleanupProfiles
Type
REG_DWORD
Range: 1 to 99999
Delete user profiles older than (days)
Computer · Type decimal
Registry mapping
Path
Software\Policies\Microsoft\Windows\System
Value name
CleanupProfiles
Type
REG_DWORD
Details
Range: 1 to 99999