-1

icacls d:\users\dptname\username /grant:W company-domain\username:(OI)(CI)(M)

error says: invalid paramter "/grant:W"

why?

Aksedir
  • 11
  • 1
  • 3
  • /grant:w is apparently not correct. you can either use /grant or /grant:r. If you intent to give the user write-only permissions place it like `company-domain\username:(OI)(CI)W` – Andreas Jul 16 '10 at 21:51

2 Answers2

1
grant:W 

is not valid because the only valid switch is

grant:r

or no switch at all. From the documentation

With :r the permissions replace any previously granted explicit permissions.
Without :r the permissions are added to any previously granted explicit permissions

Woot4Moo
  • 23,987
  • 16
  • 94
  • 151
-2

I got it. company-domain\username should be in quotation marks...

Aksedir
  • 11
  • 1
  • 3