Deleting user profiles in Windows XP clients remotely

It is a general practice to get rid of old user profiles on a computer  in a LAN environment.

As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profiles on a single machine. However, as per the shift timings, it is required to leave only two active profiles on one computer.

At times, and over time, we can see many user profiles on a single machine. This will (or at least, could) consume a lot of system space and slow down machine performance. In turn, this will slow down other system processes.

There is a way to delete user profiles by selecting and deleting multiple user profiles. Microsoft has introduced a way to delete the user profiles in command mode. It gives a msi package with which we can introduce a new command "delprof"

This is easier to use in a LAN environment as well, we can remotely delete user profiles from our admin command prompt.

Delprof.msi is the package that needs to be installed first. It is available in the following link

Open command prompt in administrator mode and access the path C:\program files\Windows resource kits\Tools" and then execute the command :

delprof /P /R /C:\\<computer name> /D

/P is meant for Prompting
/D allows you to select the number of days old_profiles.
And the other options are shown clearly in the image attached.

In a standalone computer we can simply go with delprof, though, would NOT recommend it unless you back up first. Best to used the /P and the /D together to make sure you are deleting "old" profiles and you get asked (or prompted) for the delete.

Execute the above command and select Yes option to delete the desired profiles.
This will work with an ease and you can avoid graphical environment of slow deletion process.

Please becareful. While it is important to keep your computers clean, and clear up OLD profiles, make very sure you know all the profiles you want / need BEFORE you begin. If in doubt, then DON'T delete.

Comments (1)


Thanks a lot, your suggestions are very helpful for my upcoming articles on now.

Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.