Link to home
Start Free TrialLog in
Avatar of BLACK THANOS
BLACK THANOSFlag for United States of America

asked on

How do I get rid of risidual user accounts in a workgroup environment.

Good evening experts,

this is probably going to be an easy one, but is there a simply way to get ride of user account left over folders when I delete them. Let me explain with visuals, because a picture is worth a thousand words. Here is my scenario:

Here is a hypothetical member user list:

User generated image
Here is where I go to delete accounts:

User generated image
Here is where I go to take care of any residual leftovers:

User generated image

I would like to get rid of the unwanted accounts that put periods after the account and stay there. I can enumerate all of the users on all my machines using primal scripts and I can tell you this condition exist on most of my machines, so when I am coding, I have to do a case statement to take into consideration:


User generated image
I don't want to have to go into safemode to delete the folders, but I am willing to do a reboot if there is some process or software that will delete those folders and any subfolders along with the files.

Your help is appreciated.
Avatar of sbrozinick
sbrozinick

All you have to do is delete the users profile then delete the account.  In that order.  

You will have to restart the computer and log into the adminstrator account or an account with admin rights in order to get the delete button for each of the profiles.
Avatar of BLACK THANOS

ASKER

Did that. doesn't work that way. Residual folders still exist.
SOLUTION
Avatar of sbrozinick
sbrozinick

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Okay, I'll grant that you are correct in that the profile should be deleted first. That is my problem, but still doesn't answer the original question, how do I get rid of the residual folders? I have gone as far as to take owner ship of the folders, log into the administrators account and still cant delete all of the folders with the deleted account. That's the golden nugget answer I am looking for. Now that you've proven that I have been deleting my accounts the wrong way, how do I get rid of the folders?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That's the golden nugget I was looking for
Thank you much.   : )

Having a Live distro around, does come in handy every once in a while.  ; )