DELPROF – Windows CMD Command
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 118
Notice: A non well formed numeric value encountered in /home/future4tech/public_html/wp-content/plugins/crayon-syntax-highlighter/crayon_formatter.class.php on line 119
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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 |
1 2 3 4 5 6 7 |
Example: delprof /D:14 Run Delprof2 on a remote PC (with PowerShell) PS> Invoke-command -computername 'workstationF4T' -scriptblock {& "C:\utils\delprof2.exe" '/q'} |