Solved

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

Posted on 2013-07-01
7
344 Views
Last Modified: 2013-07-03
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:

!
Here is where I go to delete accounts:

!
Here is where I go to take care of any residual leftovers:

!

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:


!
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.
0
Comment
Question by:BLACK THANOS
  • 3
  • 2
  • 2
7 Comments
 
LVL 3

Expert Comment

by:sbrozinick
ID: 39292074
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.
0
 

Author Comment

by:BLACK THANOS
ID: 39295009
Did that. doesn't work that way. Residual folders still exist.
0
 
LVL 3

Assisted Solution

by:sbrozinick
sbrozinick earned 150 total points
ID: 39295411
I have done this hundreds of times.  If the profile is deleted first - then there are no files to delete and only the account exists as if the account has never been logged into.

If you delete the accounts first (not suggested) the profile will be listed as account unknown.  Then all you have to do is delete the remaining directory that is stored in C:\Users.
0
Save on storage to protect fatherhood memories

You're the dad who has everything. This Father's Day, make sure your family memories are protected. My Passport Ultra has automatic backup and password protection to keep your cherished photos and videos safe. With up to 3TB, you have plenty of room to hold the adventures ahead.

 

Author Comment

by:BLACK THANOS
ID: 39298835
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?
0
 
LVL 32

Accepted Solution

by:
_ earned 350 total points
ID: 39298905
Since you said a reboot is an option, I would just download and burn a Linux Live cd/dvd/usb and boot to that. Do Not choose to install it, just run it from the cd/dvd/usb.
Go to the hard drive and delete the folders.
Done.
Turn off the computer, take out the media, turn on the computer.

Most of the people around here like Knoppix or Ubuntu, (the free version should do it):
http://www.knopper.net/knoppix/index-en.html
http://www.ubuntu.com/download

I'm kind of partial to Mandriva, myself:
http://www.mandriva.com/en/downloads/
0
 

Author Comment

by:BLACK THANOS
ID: 39298937
That's the golden nugget I was looking for
0
 
LVL 32

Expert Comment

by:_
ID: 39298971
Thank you much.   : )

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Virus On motherboard 6 39
Laptop recommendation for CPA accountant 8 70
moving files on usb stick 3 45
Undelete files from a formatted drive 18 33
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
Lithium-ion batteries area cornerstone of today's portable electronic devices, and even though they are relied upon heavily, their chemistry and origin are not of common knowledge. This article is about a device on which every smartphone, laptop, an…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now