Group Policy : Remove Old User Profiles

If you’re wanting to delete old user profiles from computers, the easiest way maybe to using a group policy object in your active directory environment. This will allow you to clean out old user profiles on several computers in just a few clicks.

To delete old user profiles using group policy, first logon to a domain controller or a computer with RSAT installed. Next, navigate to our Group Policy Management inside of Administrative Tools. In the policy, navigate to Computer Configuration > Policies > Administrative Templates > System > User Profiles. Next, right click on the policy titled Delete user profiles older than a specified number of days on system restart.


Once inside Enable the policy. Enter in the number of days the user profile will remain on the computer. One our number of days has been select Apply and OK. Last apply the policy to the desired organizational unit.


To apply the new setting to the computer, restart the machine or run gpupdate /force. To further verify that the policy is being applied, run gpresult /r