Microsoft should have just not released Windows Vista rather than making us bear the pain of trying to use a crappy operating system. Or at least very annoying. Problems I never had in Windows XP now show up all over Vista.
One of those annoying problems is the fact that security on Windows Vista is so tight that half the time you are allowed to do normal activities! For example, there are numerous times when I am trying to perform a simple task in Vista like install a program and I end up with the following message:
You need permission to perform this action.
Why do I need permission when I already agreed to it when the other annoying UAC dialog popped up and asked me about it! Strange thing is that even if you are an Administrator, there are certain tasks or actions that Windows locks down.
The best part is that you do not get this error on any kind of consistent basis, it can pop up when you are trying to delete a folder, trying to copy some files, trying to install a program, etc, etc. It all comes down to not having the right security permissions.
Note that UAC (User Account Control) does not usually affect this problem, so don’t go out and automatically disable UAC. If you disable UAC, you can’t do things like share printers, etc, so it’s best to live with it.
There are some things you can do, however, to help out with the “You do not have permission to perform this action” problem though. If it’s a particular file or folder you are trying to delete, you can simply give yourself full control permissions over the file.
But before we go into that, try one other method that might be a bit faster. Go to Start, Programs, Accessories, and right-click on the command prompt and choose Run as Administrator.
Now at the command prompt type the following command:
net user administrator /active:yes
Press Enter and restart your computer. Now try to perform the task again that gave you the “You do not have permission” error. If that does not work, then follow the steps below to change the file permissions.
To change the security permissions for a file, right-click on the file and go to Properties. Then click on the Security tab.
Now click on the Advanced button at the bottom and click on the Owner tab.
Click on the Edit button, click Other users and groups and type in your user account name and click Check Names.
Image Source: Vista4Beginners
Click OK and on the Owner tab make sure to check the “Replace owner on subcontainers and objects” box. Now select your user account from the list on the Security tab and click Edit. Click Allow next to Full Control and click OK.
Hopefully, this fixes one very annoying problem with Windows Vista. I did notice that upgrading to SP1 helped to reduce the occurrence of this error, so if you do not have SP1 installed yet, make sure to go to Windows Update. Enjoy!












Hi thanks for your explanation. It didn't work though. It said something about the root folder. But I stumbled accross another shared folder which worked. Putting XP back on this machine F**k vista.. Thanks anyway
Everyday I hate Microsoft a little bit more for its backward software design which puts all users under one setting. Sharing under Vista is simply horrible. If I am the ONLY user on my PC, why in the world do I need "permission" to do anything? From Bill Gates? From God? From Britney Spears? To Microsoft: let users themselves determine what kind of setting they want!
Wow, thankyou ! I don't know how you did it but it worked, although after applying your solution and rebooting I still had to delete the folder in two steps. The first time I deleted the folder, it simply emptied the files. The second time I managed to get rid of the folder as well. No idea how this problem arose but you've saved me a great deal of trouble. I find it amazing that even with latest versions of Vista you don't even have control of your own computer even when you're an administrator !
You're wrong about UAC. You can disable it fine and share printers, etc.
wow!
Vista sucks big time!
I just tried the entire thing a 100 times and it still said that I needed Administrators permission, when I myself am the only owner of this machine..
the best thing is my pal tried doing something and "zaaaaaap" its resolved..
Microsoft! Please tell me who is the owner??
The more user friendly MS gets the more users loose their minds…
what did your friend do to solve the problem?
Thank you so much for this! I am bookmarking you guys!
THANKS!!! My hard drive just crashed on me. This fixed it!!!!!
THANKS
THANKS
five stars
THANKS A LOT!!! this really worked out. I couldn't delete a HP Scanjet file to reinstall the printer software. Now I can!
so many people used to running in root, no way these guys could handle Linux.
I wish to God that there was an alternative to Microsoft.
Win XP was fine. Vista is a "Nightmare". We need legislation to stop the myriad ways that Microsoft insists upon taking control of you and your computer. Everything that was relatively uncomplicated and user friendly in Win XP has been made infinitely more complicated and difficult in Vista. I WOULDN'T TOUCH WINDOWS 7 WITH A BARGE POLE!
MICROSOFT sucks!
Thank you so much!
I had missed the “Replace owner on subcontainers and objects” box.
net user administrator /active:yes
That did the trick. Thank you very much.
When i compleate all this I can't press OK there is written that i can't modify this file :(
please help me, I have video files and i want to put them on the pen drive but it can't be because it needs permission from the admin, i logged as admin but no way, the same thing, also there is mark when you go to properties of the file then general then advanced there i see encrypt contents to secure data )) is checked, and when i want to remove the mark it says that i need permission from admin, i restart and entered as admin but the same thing.
Awesome guide , thanks alot
I did the first step, and it worked. Now, when I restarted my computer, it opened another user and won't let me delete it.
OMG. Thank you so much. It has taken me 3 hours to figure out a way to delete my own files. Thank you!!
This is the error message you get when the file you want to delete or modify is in use, such as an open executable or dll. Quite misleading! It often has nothing to do with permissions. So you just have to figure out what program is using it.
What you complainers fail to understand is that MS does not want to stop you from controlling your own PC. What they DO want is to stop malware from controlling your machine.
Is Vista (or any other OS) perfect? No, of course not. But to let anyone/any process delete or replace necessary system files is foolish at best.
This did not work for me. All of the permissions appear checked, but they are "grayed out," and cannot be modified.
One thing I noticed that may be causing the problem, is that it is saying these objects are shared with another user on the system. That user is not an administrator, while my user account is.
Thanks Very Much. It worked Finally. :))))))
On Windows 7, right click the file or folder and select Properties – Security tab – Advanced button – Owner – Edit – and Select you as Owner. Then, click Apply and OK.
Exit all the way back out to Windows Explorer, right click the file or folder again and select Properties – Security tab. Then, click Edit to change permission – click Add – Find your name – click OK – Then, check full permission.
I did this when trying to take pics and videos off a hard drive from Windows XP onto Windows 7.
Vista – worked just as described. Thanks!
I just can't change any security options for certain exe files. I work on Visual Basic. When it creates an exe file, it's just permanent! Now when I debug the program, the existing exe file is not overwritten, so I can't run the program!!
This doesn't happen all the time, but when it does, it just sucks. :(
Please help.
Ahhhh. Thank you soooo much! (:
Hi guys!
I needed, as well, to delete and I tried all the solutions I found on the net. Nothing worked!
However, I remembered there is a solution to delete/replace/move any file from your computer, no matter the Windows version you have: F8. That means press F8 when you start the computer. That allows you to enter Safe Mode, where you can do anything with any of the files.
It works for me. Maybe it will work for you, too.
Hi guys. I just had the same problem but I've managed to sort it out.
I had a folder on my desktop that I couldn't delete, rename, whatever. I just drag it to my pictures and that's it!!!
Then I could rename it or delete it!!!
Try it out!
Didn't work. I followed the instructions step-by-step. I have full control and still get the error popping up repeatedly, even after I confirm it in UAC: You need permission to perform this action.
But, I never can get that permission.
Wait. I just re-ran the command line instruction, rebooted and it worked! I was able to actually rename the folder that I had "full control" over (whereas I couldn't rename it previously even though I had taken "full control"). As the saying goes, if you can be root, reboot! Ha Ha.
Thanks!!
You Are The Man. Thank you for sharing your insight into how to take back control of this Train Wreck named Vista.
you could also try Killbox (missing ocx? look on killbox's site for the ocx). Killbox will delete a lot of things that can't be deleted normally. Plus you can set it to delete on reboot. Both folders and files can be deleted. If it is a virus file you can even have it replaced with a dummy file so if the reg entry tries to run the file at startup it will not be able to.
OMG, this was driving me nuts. I had just created a folder and unzipped some files in it. A few minutes later I wanted to delete them. I could delete all but 1 .exe and 2 .dll files. Your tips on running the command line as administrator, typing: net user administrator /active:yes, re-booting, then deleting the files worked like a charm. I love help desk geeks that share their knowledge. Thank you so much.
but this doesn't work. I followed step by step but I am unable to resolve the problem.
Any Idea how to delete the new account that appeared after restart. Help Please. Didn't work for me.
I kept getting this message attempting to rename a folder. The folder was created by Visual Studio 10 (which I run as administrator — I think this is why I have the problem). I have not tried the permanent solution (net user administrator) yet because that requires a reboot and I am too impatient for that.
What I did do was run command prompt as administrator and execute the old dos command: rename oldname newname. It liked that.
Great Guide!! Thanks for the help.
legend!! you have saved me 3 weeks of hurt with that!!!! :)