Windows 7 Automatically Deleting Profiles
We have just upgrded our Dell desktops from Win XP to Win7. With XP, we used del.exe as set up in the Scheduler to automataically delete user profiles after a certain number of days. That no longer seems to work with Windows 7. Is there an alternative under Windows 7 to automatically delete profiles baased on the number of days? Under XP, our del.exe file contained the follwoing: “C:\Program Files\Windows Resource Kits\Tools\delprof.exe” /q /i /d:07
August 4th, 2010 5:47pm

If you are deleting after just 7 days I assume you are using Roaming Profiles? If so, it might be worth using Group Policy to delete the Roaming Profile at logoff. Windows 7 also has the UPHClean (User Profile Hive Cleanup tool) as standard which helps with ensuring profiles are fully cleaned from the registry at logoff.
Free Windows Admin Tool Kit Click here and download it now
August 4th, 2010 5:58pm

We do not want to delete a profile up on log off either from group policy or with UPHClean unless we can specify the number of days from the current date to have profiles deleted. For example if we automatically clean profiles today, we would only want to delete profiles that have been created 7 days or more from the create date of the profile. Can anything do that?
August 4th, 2010 6:07pm

You could remove the profile with a normal script by deleting it from C:\users. Be aware of UAC, eventual NTFS permission issues and the associated key for the user below HKEY_LOCAL_MACHINE\Software\Microsoft\Window NT\CurrentVersion\ProfileList, which needs to be deleted also. Best greetings from Germany Olaf
Free Windows Admin Tool Kit Click here and download it now
August 5th, 2010 12:18am

Hi kemoconnor, There is a group policy called "Delete user profiles older than a specified number of days on system restart" in Windows 7 can realize this. · If you are using Windows 7 Professional, Ultimate or Enterprise, please see the issue can be resolved by changing the Group Policy: 1. Go to Start, type group policy in the Start Search box and then press ENTER. 2. Expand the following policy: Computer Configuration / Administrative Templates / System / User Profiles / Delete user profiles older than a specified number of days on system restart 3. Select Enable and the choose the day you would like to delete the profile. 4. Click Apply and then click OK. Hope this helps. Regards, Linda Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
August 6th, 2010 8:50am

Linda, I have tried this on several Winows 7 Professional 32bit computers and can not get it to work. Have you had any success with this actually working? Thanks Kevin
Free Windows Admin Tool Kit Click here and download it now
September 28th, 2010 2:43pm

We have tried this (700+ machines) and it is very rare that it actually does clean out the profiles. The rsop reveals that the policy is coming down but 70% of the roaming profiles aren't getting deleted. We can't find a reason why. 2008R2 with Win7 Ent 32b clients, Roaming profiles. We have the "Delete user profiles older than #days on restart" as well as clearing the roaming profiles out on logout. NOTHING seems to be working. It almost looks like they are the cached roaming profiles if windows finds a slower connected link speed. (slow login detections are correct - Gb network) Does anyone in the Microsoft have an effective answer to delete random cached profiles enterprise wide without going to each machine and reg'in it? No more Delprof, no more User Hive Ceaning Service. No more Windows. This has to be a bug.... Philt80
March 4th, 2011 9:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics