Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cannot delete NTUSER.dat 2

Status
Not open for further replies.

justchillin32

Technical User
Mar 28, 2005
15
US
Am trying to delete user profiles of employees who are no longer with our company from C:\Documents and Settings on Windows Server 2003. Am getting message "Cannot delete NTUSER.dat. It is being used by another program." Have already gone to User Profiles under System Properties and the Delete button is greyed out. Any ideas or suggestions?
 
Are there AV or backup programs running? What's it say in the Open Files?

Pat Richard MVP
 
No AV or back up programs running. None of these users are in the Open Files listing.
 
not trying to be funny, but have you rebooted this server?
 
I for one have seen this happen often, especially with terminal server users profiles. I would love to know a solution that does not involve a reboot. And, yes I am aware of the Terminal server manager utility.
 
a scheduled after hours reboot can often be the simplest solution... but if you really want to delete the profile in real time, you can try the following...

look for any processes running under the user's login name on the server and stop them

if this fails to let you delete the profile...

go into the registry under HKEY_USERS and locate the user's registry hive, which will be represented by their Windows SID. Highlight the hive and from the file menu, unload the hive (this hive IS the NTUSER.DAT file so to speak). Then try your delete. reference this article...


lastly, if none of the above works, download and run the MS delprof utility...
and if this doesn't work... try google.com
 
Dublin73,

I understand you are not trying to be funny. Yes, the server has been re-booted numerous times afterhours. Unfortunately that did not change anything. The user profiles that are being a problem have not only been disabled, but they have been deleted from Active Directory as well. The profiles that were deleted successfully were disabled, but not deleted from AD.

OK, I will try your other suggestions about going to the registry and unloading the hive.

nmendes,

Yes, these are terminal server profiles like you mentioned.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top