Tips Security
Using Delprof

Delprof is a Microsoft program that allows you to delete traces of different profiles on your workstation and it can also be remotely used from the command line. This makes it idea if you have unneeded profiles on a network.

Tips & Tricks : categories

Customization, Internet, Network, Optimization, Others, Security, System

Using Delprof

January 22nd, 2006 - 06:00 pm ET by Mathieu D.
Delprof is a Microsoft program that allows you to remotely delete local user profiles, which is very practical if you are in a company and you have a lot of old user profiles taking up space on hard drives.

There are two ways of using Delprof:

  • By running the program from its installation directory

You will need to go to the folder where Delprof has been installed (%ProgramFiles%\Windows Resource Kit\Tools) and double click on the delprof.exe file.
A confirmation will be displayed asking if you want to delete all the profiles.

Image
Deleting profiles confirmation window


  • By running the program from the command line

Delprof can be run from the command line but for repetitive tasks it is better to create a .bat file and incorporate the appropriate commands. You can then run the .bat file as a scheduled task whenever you need it (once a week for example).

After having installed the Delprof program, start the DOS box (Start > Run and type “cmd”, [Enter]). The program is accessible from its install location with the following switches:

  • DELPROF [/Q] [/I] [/P] [/R] [/C:\\Computername] [/d:Days]
    /Q  Doesn’t ask for confirmation before deleting the profile
    /I   Ignores errors and moves on to the next profile
    /P  Requests confirmation to delete each profile
    /R  Removes only each user profiles cache
    /C:\\ComputerName  Specifies the name or IP address of the remote machine
    /D:Days  Removes the profiles that have been inactive for a certain number of days
Image
Deleting the cache on the computer with the IP address of 192.168.80.130


Here is an example of a batch (.bat) file:
Delprof /q /I /c:\\192.168.12.50
Rem Deleting unused profiles on the computer
Rem with IP address: 192.168.12.51 without asking confirmation
Rem and in the event of an error, passing to the next profile.

Image Download Delprof
Post a comment
Previous tip and trick Next tip and trick
Deleting the Internet Explorer content control password Disable onboard speaker