Ok, here is what I normally do to delete user profiles on my local computer, doing so through User Profiles from System Properties.
But it’s tedious, and not very efficient. It takes me a few clicks to get there, and only allows me to delete one at a time. It’s even worse if I want to do the clean up on a remote computer. And that’s why I like this tool called Delprof2 so much.
Delprof2 is the unofficial successor to Microsoft’s official Delprof which only works up until Windows XP. It’s a completely free command line tool that can easily delete inactive user profiles both locally and remotely. It also has some additional filtering options that can help you delete the local copy of a roaming profile or any of those profiles that are inactive.
Here are a few examples of how to use the tool:
This is to list all the profiles only but not delete any of them. Use it to test the command line before actually executing it.
This is the simplest way to reclaim disk space by deleting all profiles except the one you are using and the special ones needed by Windows.
That’s how you delete all inactive profiles on a remote computer called “computername”. With a switch /l in the end, it only lists inactive profiles on the remote computer but without deleting them.
To delete the local profiles that are older than 30 days. And
Delpro2 /c:computername /l /r
to delete inactive locally cached roaming profiles on ‘computername’.
You can see the full syntax by using /? switch in your command prompt window. You can also combine the options to make the cleaning work more efficient.
Delprof2 is definitely the tool needed in your toolbox, especially when you manage many of computers either at your work or at home.