Post

Delete User Profiles Older Than a Specified Number Days [GPO]

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.

GPO: Computer Configuration -> Administrative Templates -> System -> User Profiles.

The main troubles associated with this automatic method of profile removal is waiting for the server restart and non-selectivity (you cannot prohibit deleting certain user profiles like local accounts, administrative accounts, etc.). Also, this policy may not work if some third-party software (most often it is an antivirus) accesses NTUSER.DAT file in user profiles and updates the date of last use.

Saygılarımla. – Best regards.

This post is licensed under CC BY 4.0 by the author.