Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 cannot get icacls to accept my group for adding permissions. I am using an elevated power shell with the following command:

icacls 'C:/foo' /grant:r 'Group Foo':f

I get the following error:

Invalid parameter "Group Foo"

I have tried using the SUID too, but that fails as well. I have also tried 'Domain\Group Foo'

I have a bunch of files I am trying to allow a group to use. What is the proper way to add mass permissions in Windows Server 2012?

-- EDIT --

E:\> icacls "E:/Contact Numbers.xlsx" /grant:r "Users":f
Invalid parameter "Users"
share|improve this question
up vote 6 down vote accepted

Use double quotes instead of single quotes:

C:\>mkdir foo

C:\>icacls 'C:/foo' /grant:r 'Users':f
'Users': No mapping between account names and security IDs was done.
Successfully processed 0 files; Failed processing 1 files

C:\>icacls "C:/foo" /grant:r "Users":f
processed file: C:/foo
Successfully processed 1 files; Failed processing 0 files

I missed that you were using Powershell, not cmd. Powershell has some high weirdness when mixing external commands and quoting. Here's a couple examples using Powershell.

PS v2: To pass the quotes onto icacls you must escape them with a caret. Note parenthesis around the "F" need escaped as well.

PS C:\>icacls `"C:/foo`" /grant:r `"Users`":`(F`)

PS v3: Version 3 offers a new escape sequence --% (dash, dash, percent) which escapes the remainder of the line. This makes even complex external parameters simple.

PS C:\>icacls --% "C:/foo" /grant:r "Users":F
share|improve this answer
See my edit above. This did not work either. Note that I am getting "Invalid parameter" errors and not "No mapping between account names" – user319862 Jun 17 '13 at 13:22
I just tried again using command prompt instead of power shell and it worked. Don't know what the issue is there but thanks for the correct syntax. – user319862 Jun 17 '13 at 13:35
Sorry, totally skipped over that you were using PS. Updated to include PS 2/3 examples. – jscott Jun 17 '13 at 13:50

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.