DELPROF – Windows CMD Command

Delete windows user profiles.

Does not work with Windows 7 or later. A good alternative is Helge Klein’s Delprof2.
Delprof2 is syntax compatible with the original Delprof by Microsoft.

In the Windows 10, GUI right-click My Computer | Properties | Advanced System Settings | 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

Run Delprof2 on a remote PC (with PowerShell)

PS> Invoke-command -computername 'workstationF4T' -scriptblock {& "C:\utils\delprof2.exe" '/q'}

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *