Question Locked

How do I force a delete of NTUSER.dat?

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am attempting to delete old profiles from one machine on the network. I have full control of the user's folder, but it does not allow me to delete it because it will not allow me to delete NTUSER.dat? I'm attempting to do this remotely.

I have already tried using del without success.

8 replies

by brian

maybe try going to dos shell....navagaiting to folder where file is, do an attrib -? for information and change attributes of the file to make it deletable (then delete in dos)....

by oldbaritone

I know this seems obvious, but is the user logged in? That would lock the file.

If you can't get it deleted, it may be time for an alternate path, such as booting another OS and mounting the drive as data to do the cleanup.

WARNING - ANY time you mess with the registry, you're running the risk of making the system unbootable. and NTUSER.DAT is part of the registry, so deleting it improperly could "brick" the system.

by shadetreeadmin

No, the user is not logged in and has been deleted from Active Directory some time ago. Yet his profile remains on the machine and to free space on its relatively small hard drive, I need to delete the folder.

attrib was not able to change the attributes on this file.

One more thing. This isn't the only profile on the machine. There are many. I'd rather not have to make changes to each ntuser.dat for each folder.

by seanferd

This is sure to clear the registry hives as well.

This discussion is closed to new replies.