If you support computer labs or any other environment where lots of different people log into your computers daily, you’ve probably had to deal with user profiles that need to be deleted. The good news is that there is a setting in Group Policy that take care of that for you.
In your GPO, go to Computer Configuration > Policies > Administrative Templates > System > User Profiles > Delete user profiles older than a specified number of days on system restart. Click Enabled and set the number of days you want to wait before deleting old profiles.
There are two things you’ll need to keep in mind: First off, the deletion process happens on reboot. Assuming you’re patching regularly, this shouldn’t be a problem unless you’re dealing with a really high volume of logins and have this set to a very low number. Second, I’ve had a few situations where the user’s profile was deleted, but the C:\Users\username folder stayed behind. The next time the user logged into the computer, they got a new profile folder at C:\Users\username.domain.



