0

I just deleted a user account on a Windows Server 2008 R2. Yet her user home directory still stands at c:\Users\her-account-id.

Moreover, using regedit I can still see HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\ProfileList\blah.... and HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\hivelist\blah entries matching her account.

When I deleted her account (using Control Panel) I checked the "Delete files" check box also.

What can I do to remove her user home dir ?

Thanks in advance,

phep

1

On Windows 2000+ it is not possible to completely get rid of user's account. However it should be enough to simply delete it, from both security and licensing reasons.

As for Windows Server 2008+, to delete user with its home directory:

  1. Open System in Control Panel.
  2. Click Advanced Settings, and on the Advanced tab, under User Profiles, click Settings.
  3. Under "Profiles stored on this computer", click the user profile you want to delete, and then click Delete.

Or you can write a script in PowerShell, VBScript, JavaScript, batch or anything else, that will first delete user, and then delete its home directory, even on remote computers in your domain.

  • Hi Tomasz. Thank you for your help. Unfortunately the user account doesn't show up in this list (as it does not show up in the server manager user list anymore since I've deleted the account). – phep Jun 15 '15 at 8:40
0

Yes, it retains these directories simply because you can have "system held files" that are not necessarily user files anymore.

Have you tried Right click c:\Users\her-account-id. >> Delete, if there is a lock, it will highlight

  • Hi. Thank you for your help. As I feared I cannot delete her home directory since there are a bunch of "ntuser.*" files in it. I succeeded in deleted everything else in there but not those files, hence not the folder itself. – phep Jun 15 '15 at 8:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.