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


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

| 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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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