开发者

I get Invalid parameter with this icacls line

开发者 https://www.devze.com 2023-01-07 11:39 出处:网络
icacls d:\\users\\dptname\\username /grant:W company-domain\\username:(OI)(CI)(M) error sa开发者_运维问答ys: invalid paramter \"/grant:W\"

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

error sa开发者_运维问答ys: invalid paramter "/grant:W"

why?


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消