The Ghost of "Maxpm (Admin)"

2

I had an account on my Windows Vista computer called (something like) "Maxpm (Admin)." The space in the name was causing problems with certain command-line tools, so I created a new administrator account called just "Maxpm" and moved all my files over.

Trying to delete the old account, however, crashed the "Add and remove user accounts" tool. Maxpm (Admin) no longer appears on the login screen, but the folder is still there in C:\Users. When I try to delete the folder manually, I get a slew of "Are you sure you want to do this?" confirmation dialogs, followed by a "The folder is no longer in C:\Users" error. (Even though it obviously is.)

Is there any way to remove the folder?

Maxpm

Posted 2011-05-18T11:46:06.527

Reputation: 195

Answers

2

Try the following commands in an elevated command prompt:

net user "Maxpm (Admin)" /delete
rmdir /s /q "C:\Users\Maxpm (Admin)"

This deletes the user account (if if still exists) and its home folder. If this doesn't work, leave a comment.

bwDraco

Posted 2011-05-18T11:46:06.527

Reputation: 41 701

3You cannot delete directories with del; you need rmdir for that. Use rd/s/q "C:\Users\Maxpm (Admin)" to remove the entire profile along with subdirectories. – user1686 – 2011-05-18T12:16:43.617

I stand corrected. Post edited. – bwDraco – 2011-05-18T12:29:40.500

The second command worked (the directory was removed), but the first gives me the error "The user name could not be found." I imagine the record of it was removed by the Control Panel tool before it crashed. – Maxpm – 2011-05-18T19:11:40.847