DELPROF (XP/2003 Server Resource Kit - download)

Delete windows user profiles.

Does not work with Windows 7 or later.
In the Windows 7 GUI right-click My Computer | Properties | Advanced | User Profiles | account | Delete

Syntax
      DELPROF [options days]

Key
   /Q      Quiet, no confirmation.

   /I      Ignore errors and continue deleting.

   /P      Prompts for confirmation before deleting each profile.

   /C:\\computer_name
           Delete profiles on a remote computer.

   /D:Number_of_days
           Only delete profiles that have been inactive for
           'X' Number of days (or greater)

   /R      Delete roaming profile cache only

Example:

delprof /D:14

“The best way to destroy the capitalist system is to debauch the currency” ~ John Keynes

Related:

DEL - Delete one or more files
DELTREE - Delete a folder and all subfolders
RD - Delete folders or entire folder trees
Delprof2 - Windows XP / Windows 7 / 2008 R2 (unofficial Helge Klein)


© Copyright SS64.com 1999-2014
Some rights reserved