Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When I access a folder in Program Files I get a UAC prompt confirming with me that I want to permit access to it. I say "yes" and get permanent access.

My question is: how do I reset this folder so that it prompts me again.

The reason I ask is that I am testing a .NET program I wrote that deals with directory access permissions and I need to test it with the UAC protection on. But now that I have permitted access manually, I can't figure out how to turn the UAC protection back on to retest my program.

share|improve this question
    
Win Vista or 7? –  Shevek Mar 24 '10 at 8:50
    
I would like to know for both. –  Roel Vlemmings Mar 26 '10 at 8:55

3 Answers 3

It's not UAC, it is just a Windows dialogue that makes it easy to change the NTFS permissions on the folder. The UAC prompt is triggered because you are changing permissions, but the permission change itself is not a function of UAC.

This is a pretty good primer on NTFS permissions, they have been the same for a while, so the concept should carry over, even though that article wasn't written for Windows 7.

share|improve this answer

I think it is because UAC explicitly adds your user to the ACL of the folder, so you should judt be able to reset the permissions on the folder

share|improve this answer

Change the owner of the file to someone else, then change the permissions to not include you (Important: Don't set them to "Deny" you, just not include.) There are already plenty of tutorials on how to do that.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.