Windows 7 profile remote deletion.
The setup: Windows 7 RTM EnterpriseRunning in a lab environment of 200+ computers. Computers are members of a domain and are managed by group policy. No roaming profiles.Question:In the past with Windows XP i have used the delprof.exe utility to clean off old profiles. However I cannot seem to get this utility to work with Windows 7. I have tried disabling the Windows firewall and I have tried using the psexec program but no luck with either. So... is there a way to remotely clean off old profiles from a Windows 7 computer? These are not cached roaming profiles, because we do not use roaming profiles. Dantk
October 2nd, 2009 2:39am

Delprof.exe if the utility from User Profile Deletion Utility. This utility is not compatible with Windows systems later than Windows XP. If you would like to remove old profiles, please just configure the following policy. Computer Configuration->Administrative Templates->System->User Profiles->Delete User Profiles older than aspecified number of days. If your domain controllers are not Windows 2008 or R2, please create GPO and change this policy on a Windows 7 client. Please open mmc, add the Group Policy snap-in and link to a domain controller. Then create GPO and edit this policy.Arthur Xie - MSFT
Free Windows Admin Tool Kit Click here and download it now
October 6th, 2009 10:03am

I have applied a group policy like you mentioned above, but it only removes the account from the registry. The c:\users\<profile name> still remains. Is there another setting in the policy I need to set to have the accounts removed after a specified period of time? TIA
September 24th, 2010 9:23pm

I applied this GPO setting to remove user profiles, but the profile modified dates for all profiles always stay the current day, so they aren't being deleted. I researched and found people having this issue were blaming windows defender/antivirus programs for modifying the user dat files making windows think the profile was modified. My machine has three local profiles, administrator and two AD accounts. The administrator account and one AD account shows 9/24 as last modified date and I have our antivirus solution installed on my system, so that leads me to believe it isn't that. Anyone have any idea what else could be keeping the profile modified date at the current day for every local profile on a lab computer used by multiple users?
Free Windows Admin Tool Kit Click here and download it now
September 28th, 2010 7:27pm

I am still having the issue as well. I have disabled Windows Defender months ago, otherwise McAfee wouldn't install. We also checked a few computers and this KB is already installed. http://support.microsoft.com/kb/983544
September 29th, 2010 6:57pm

I've run into this as well, the profile is always accessed on the current day by our AV app so they never get deleted. I installed a hotfix that supposedly would fix this but it didn't help. Has anyone had any luck with a script? The GPO would be great if it worked!
Free Windows Admin Tool Kit Click here and download it now
November 15th, 2010 8:09am

Use REMPROF for Windows 7/2008/Vista. http://www.ctrl-alt-del.com.au/CAD_TSUtils.htm REMPROF is a command-line utility to delete local user profiles that are NOT in use when this command is executed. This utility was written to replace the command DELPROF.EXE currently found in the MS Windows Resource Kit. This utility offers extra features that will be of benefit to all admins. REMPROF has the ability to delete user profiles on the local machine based on age, username, or SID association. If a username has been deleted from a Domain or Workgroup, the profile often still exists with only a SID assigned to identify it. REMPROF can delete these profiles completely from the file system and registry regardless of the profile age, and without removing existing profiles of the same age. This tool could be simply run from the command line at any time, or added as a SCHEDULED TASK for regular cleaning of user profiles, reducing the overall disk space used for locally based profiles. REMPROF will only function when executed by a user with ADMIN rights to the profile directory. Usage: REMPROF [/LIST|username|/A|/D:days|/AD:days] [/EXCLUDE:usernames] [/?] /LIST - List all user profiles currently not in use (Default). username - Delete user profile based on username. /A - Delete all user profiles that have no username association including abandoned profile folders. i.e. The username has been deleted in Active Directory but a profile still exists in form of a SID or the profile did not unload correctly and a residue profile folder exists. /D:days - Delete all user profiles equal to or older than the number of days specified. NB: /D: without a number is equal to /D:0. /D:0 will remove CURRENT user profiles not in use. /AD:days - Delete all user profiles that have no username association and are equal to or older than the number of days specified. NB: /AD: without a number is equal to /AD:0. /EXCLUDE:username/s - Exclude particular users from being deleted. Can accept multiple entries, seperated by comma. Must be last command line argument. Unassociated profiles cannot be excluded. Do not include the Domain Name. /? - show this help file REMPROF without parameters will execute the /LIST switch by default. E.G. REMPROF /D:10 /EXCLUDE:bob,mary This command will delete any profile equal or older than 10 days, excluding any profile whose username is bob or mary. This utility is FREEWARE and was written by Warren Simondson of Ctrl-Alt-Del IT Consultancy, Australia. www.ctrl-alt-del.com.au Although written for Terminal Server and Citrix environments, this application will function on non-TS/Citrix workstations and servers. This application has been tested on the following platforms: Windows 7 Windows 2008 Server R2 Windows 2008 Server The freeware version is offered AS IS. Ctrl-Alt-Del IT Consultancy has made every effort possible to ensure that REMPROF is free of any bugs or errors, however in no way is REMPROF to be considered error or bug free. You assume all responsibility for any damages or lost data that may result from any errors or bugs in REMPROF. IN NO EVENT WILL CTRL-ALT-DEL IT CONSULTANCY BE LIABLE TO YOU FOR ANY GENERAL, SPECIAL, INDIRECT, CONSEQUENTIAL, INCIDENTAL OR OTHER DAMAGES ARISING OUT OF THIS PRODUCT.
May 25th, 2011 5:46am

Whenever I use RemProf.exe I get a message on the profile I want to delete that says Criteria not met. This happens even when I type in the specific username of the profile I want to delete.
Free Windows Admin Tool Kit Click here and download it now
June 30th, 2011 10:04pm

Are you running RemProf.exe as Administrator? "REMPROF will only function when executed by a user with ADMIN rights to the profile directory."
July 13th, 2011 6:03pm

I have written an "inofficial successor" to Delprof, creatively called Delprof2. It is syntax-compatible to the original but much more powerful and runs on any version of Windows (XP/Vista/7/2003/2008/2008R2) locally and remotely. Here are some more facts: Delprof2 deletes inactive user profiles. If you want to reclaim disk space just run it without parameters and it will delete all profiles except your own and some special profiles needed by the operating system (like “Default”). Delprof2 has additional filtering options: you might want to delete locally cached copies of roaming profiles only or delete only those profiles that have not been used in a specified number of days. Delprof2 does it all, both on the local system and remotely. Delprof2 is free to use, commercially or otherwise Delprof2 is syntax compatible to the original Delprof, but more powerful Delprof2 bypasses file system security to delete profiles regardless of current permissions/owner (requires backup/restore privileges) Delprof2 supports very long paths (longer than 260 characters) Delprof2 can be downloaded here: http://helgeklein.com/free-tools/delprof2-user-profile-deletion-tool/ Author of SetACL | web: http://helgeklein.com | Twitter: @HelgeKlein
Free Windows Admin Tool Kit Click here and download it now
July 24th, 2011 4:29am

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

Other recent topics Other recent topics