Link to home
Start Free TrialLog in
Avatar of coconinocounty
coconinocounty

asked on

Cannot delete folder in server 03

Windows Server 2003

User has been copying folders from her desktop (XP Pro SP2) to our file server (2K3 Std).  One of the folders that was copied we can not delete.  We can't take ownership with any of our enterprise accounts.  We just want to delete the folder and start fresh.  Process worked when user was running W2K Pro
Avatar of Swindle
Swindle
Flag of United States of America image

What is the error message it's giving you when you attempt to take ownership?  Here's an article from Microsoft with a lot of suggestions:

http://support.microsoft.com/?kbid=320081
Try the Unlocker program. You can find it here:

http://ccollomb.free.fr/unlocker/
Go into the command prompt and check if it has DOS attributes using the "attrib" command. Remove all attributes and then try to delete it.
Another think you can do is go to that folder and right click it. Go to properties. As administrator, you should be able to change the security properties to that file. So, go to the security tab. and you will see a list of users with their permissions. click on the ADD button and add the administrator's credentials. Give the administrator Full control and click OK. Exit out and delete the folder.
Avatar of dataev
dataev

There's always rmdir (/S for the entire tree) from the server's command line...
if she is the one who created the folder why don't you log in with her account and delete the folder
Avatar of coconinocounty

ASKER

Have tried subinacl with both replace and owner tags, access denied.  rmdir = access denied.  unlocker program = access denied.  user who is doing move does not have access.  folder has no security tab as no one seems to have ownership or rights on the folder.  uggh...
Did you try "Attrib"?

In the command prompt, navigate to the file folder that will have that screwed up folder in it. In other words, Navigate to the folder so, if you type DIR,  you arre able to see the folder in question.

Type ATTRIB.
It should give you a list of attributes on the folder.

Remove all the addributes by using the correct syntax. If it has a read only attribute. Type:
Attrib foldername -R.
 If memory serves me correct. The syntax of (Attrib foldername -a) removes all attributes. Once the attributes are removed try to delete it. Some of these attributes are not recognized by the NTFS permissions and will not allow you to delet it.

Another trick that worked for me is to delet all files in the folder. Some might not be removable. Remove attributes from them and delete those. Or you can rename the files that are not delete-able.  There should be a couple files you can't remove. Rename the file extensions to >>>.TXT and make sure those files have no Attributes.

NOTE:  If you have to rename the files, check your computer for bugs. It could be melicious code protecting the file. It's not uncommon for Virus writers to play with extensions and hose up Windows so you can't delete the file.  
You may want to try a chkdsk /f on the volume.  If there is a problem with the security descriptors, it may fix it, then try delete or taking ownership again.
Will require restart of on sysvol.
fs
Folder is empty.  Has no Attributes set.  Full AV scans are clean for the history of the box.
A bit extreme, I know, but can you reboot the server, bring it up in Safe Mode and then delete the file?
i dont see why you cant take ownership of an empty folder and then delete it ??
At the command prompt again, navigate to the folder that contains this annoying folder.
Type Dir and see if the folder has any data in it. Please post that information.

Type  "RD annoyingfoldername" press enter. With no attributes and files in the folder, this folder should go away.  If not change the foldername to foldername.txt. Then see if you can delete it using windows. If not use DOS.
ASKER CERTIFIED SOLUTION
Avatar of ChiefIT
ChiefIT
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I was the first person to respond to your question, and I gave you the exact same link that ChiefIT did 2 days later.  Why did he get credit for the answer instead of me?