[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More


Deleting user profiles in Windows XP clients remotely

Published on
8,964 Points
Last Modified:
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  http://www.microsoft.com/download/en/details.aspx?id=5405

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.
1 Comment

Author Comment

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

Featured Post

CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Join & Write a Comment

In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF file's Info Dictionary, as well as some other information (metadata), including the page count. We show how to isolate theā€¦
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month