• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3240
  • Last Modified:

How do I delete the ntuser.dat file after deleting user from Active Directory?

We currently have a server running Terminal Services and when deleting a user in Active Directory, the user is successfully removed but the profile in C:\Documents and Settings\username folder still exists.

When trying to remove these folders we cannot because ntuser.dat in in use. Is there any way we can get rid of this exception and permanently delete these user profiles from our server?
0
advfinance
Asked:
advfinance
  • 2
1 Solution
 
LauraEHunterMVPCommented:
In the Terminal Server Manager console on the TS box, does the user show as having an active sesion?  If so, log it off and you should be able to whack the profile.

Also try a simple "del /s" from the command-line, if deleting from the Explorer GUI is still erroring.
0
 
advfinanceAuthor Commented:
Thanks for your reply. I had a look at Terminal Servives Manager, and there are no active sessions, bearing in mind which I failed to mention previously that these users are staff that have left our company.

I also tried deleting from the windows gui and the del /s from the command prompt with no joy. I also tried using the program Unlocker 1.8.5 to see if there are any handles on this file. Will let you know how it goes.
0
 
LauraEHunterMVPCommented:
You can also give this cleanup tool a try, can come in handy if the deleted user's profile did not unload gracefully the last time they exited the TS session: http://www.microsoft.com/downloads/details.aspx?familyid=1b286e6d-8912-4e18-b570-42470e2f3582&displaylang=en
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now