Delete older profiles on Windows 10

Fabio Gil 1 Reputation point
2022-12-14T20:53:49.993+00:00

I'm trying to implement a Group Policy to delete older profiles on shared computers at my workplace. I have tested it as explained in the link below and it works well.

https://social.technet.microsoft.com/wiki/contents/articles/28647.group-policy-how-to-automatically-delete-user-profiles-older-than-certain-number-of-days.aspx?PageIndex=1

The only thing is, I want to preserve some specific profiles, is there a way to add an exception? I seem to recall there's a way to add the SID to the registry but I can't find the article of actual registry branch.

TIA

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
5,825 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.