Super User is a question and answer site for computer enthusiasts and power users. 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

I am having issues with permissions and I got this cmd from a different user and it doesnt seem to work to help give me full control how do I do that

I am logged in as the adminstrator so I typed CACLS "D:\Documents and Settings\Lynn\My Documents*.* /e /g:Adminstrator F /s and I get the filename, directory name or volume label syntax is incorrect

share|improve this question
See for solution. – gavenkoa Nov 3 '11 at 22:06
See… for some related issue. – gavenkoa Nov 3 '11 at 22:06
up vote 1 down vote accepted

CACLS "D:\Documents and Settings\Lynn\My Documents*.* /e /g:Adminstrator F /s

Your command (above) is missing a backslash.

Make sure D: is the correct drive letter for the mounted drive, of course. Also, I believe there should be a colon between the user (Administrator) and the new permission (F).

So, something like this might work?

CACLS "D:\Documents and Settings\Lynn\My Documents*.* /e /g:Adminstrator:F /s

share|improve this answer
still getting the same issue, I think I am just going to give up – Anders Oct 21 '11 at 18:40
weird ... just noticed that Superuser removed the backslash I added to the command above ... anyway, the issue might be w/ your path. your command correctly includes a beginning quotation, but I'm not seeing an ending quotation (which should be at teh end of the path but before the cmd line arguments) – Garrett Oct 21 '11 at 18:59
definitely don't give up! you're so close to a resolution, it would be a shame to give up now. – Garrett Oct 21 '11 at 19:00

You can use my scripts for automating this task:

Put both script to directory and run uac.js.

For all hierarchy belong this directory scripts restore ownership and grand full access for All.

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.