Deleting user profiles in Windows XP clients remotely

Published on
8,840 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Join & Write a Comment

Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month