• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3237
  • 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

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

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