Tutorial :I get Invalid parameter with this icacls line



Question:

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

error says: invalid paramter "/grant:W"

why?


Solution: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


Solution:2

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


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »