Unable to delete some folders and quota entries

I have two problems with my Win2k Server.
1) I cannot delete some folders which contain some files named NTUSER.DAT,NTUSER.INI which are derived from profiles files. I have deleted the relevant users but the above files insist not to be deleted with the following message: "Cannot delete ntuser.pol. Access is denied. The source file may be in use". How may I force this deletion?
2) I cannot delete some quota entries even if there are no files attached to this entry. How may I force this deletion?
You could try rebooting into Safe Mode. This may prevent whatever application is locking the files from being loaded. Next, get the tool Process Explorer from Sysinternals. Find the processes that are locking the file. Disable them, then delete the file, then reboot.

Here is a script that may help.

Also, user quota entries cannot be deleted if a user still owns files or folders on the volume. Before the record can be deleted, all files owned by that user on the volume must either be deleted or moved to another volume, or ownership of the files and folders must be transferred to another user.

Additional Expert Help: Be sure to check our Answer FAQ for more expert advice. For faster answers, visit ITKnowledge...


This was first published in November 2004

Dig Deeper on Microsoft Windows Data Backup and Protection



Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.



Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:









  • VDI assessment guide

    Wait! Don't implement VDI technology until you know your goals and needs. A VDI assessment should consider the benefits of a VDI ...

  • Guide to calculating ROI from VDI

    Calculating ROI from VDI requires a solid VDI cost analysis. Consider ROI calculation models, storage costs and more to determine...

  • Keep the cost of VDI storage under control

    Layering, persona management tools and flash arrays help keep virtual desktop users happy and VDI storage costs down.