Windows 7 Unable To Delete Folder in “Programs Files”

file-permissionsfilesystemspermissionswindows 7

I am trying to delete the folder in C:\Program Files\McAfee\VirusScan\Current as a member of the computer’s Administrators group. This is a standalone computer, so no domain or anything.

The original owners of the directory were:

  • Creator Owner (Special)
  • System (Full)
  • Administrators (Group) (Full)
  • Users (Read-only)
  • Trusted Installer (List & Special)

MyUser is a member of the Administrators group, so I’ve tried to delete the directory, to which I receive a message saying that I need permissions to do so from the folders’ owner.

Fine, I changed ownership to MyUser, trieid to delete the folder. Same results, now the message reads “You need permission from THISCOMPUTER\MyUser to make changes to this folder” (that’s my logged-in user!)

I went to the security tab, removed permissions inheritance; now only MyUser has permissions on the folder, nothing is being inherited, MyUser is the owner of the folder, and I have propagated the changes down the hirerarchy. All the permissions, basic and advanced, are set for this user (as in http://technet.microsoft.com/en-us/library/cc772196.aspx)

Just for good measure, I’ve also checked the Effective Permissions, which confirm that MyUser (which, yes, is the user I’m logged in as) can do anything with the folder and its contents.

Well, not really. It still can’t. I even tried restarting the system to make sure there was no open anything, even tried Unlocker, but stop short of asking it to remove the files at boot, as that is not a practical solution.

Any ideas? I have several year’s experience with Windows both on the desktop and in server environments, but there are some options in Windows 7 that are breaking apart from all I knew about how Windows manages file system security.

Best Answer

You might consider trying to run the command prompt as Administrator (Right click on a shortcut for command prompt, and choose that option) and delete the folder from the command line.

Switch to the parent directory, and do a del /S /Q "FolderName"

Related Question