Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a quick way to give the local administrator full rights to all folders on the C drive? I am having really hard time with that, I try to give it full rights to some folders (user profiles) but I can't even modify the NTFS permissions in some cases, I get "permission denied"

Is there some soft of tutorial or script that will just give the administrator full rights on all folders in the C driver?

Many thanks for your help!

share|improve this question
not the same, my setup is a fresh install. Btw, UAC is disabled – ToastMan Jan 13 '11 at 23:18
You tried the takeown & icacls commands in Evan's post to reset permissions on a test folder that you wanted access to? What was the exact output? – Zoredache Jan 13 '11 at 23:23
You've described at least two really poor practices here. – Joel Coel Dec 4 '15 at 4:34

You need to first set the owner to "Administrators" and then in a second step you can change the permissions. If you want to automate that or set permissions from the command line SetACL might be the tool of choice. Examples follow.

Setting the owner of an entire tree to administrators and enabling inheritance on the child objects:

SetACL.exe -on "C:\" -ot file -actn setprot -op "dacl:np;sacl:nc" 
           -rec cont_obj -actn setowner -ownr "n:S-1-5-32-544;s:y"

Adding full permissions for administrators:

SetACL.exe -on "C:\" -ot file -actn ace -ace "n:S-1-5-32-544;s:y;p:full"
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.