Link to home
Create AccountLog in
Avatar of Kriti Mazumder
Kriti Mazumder

asked on

Changing permission of File in Windows 10

I want to know what command in windows 10 is equivalent of CHMOD 400
ASKER CERTIFIED SOLUTION
Avatar of zvitam
zvitam
Flag of Israel image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Kriti Mazumder
Kriti Mazumder

ASKER

icacls .\KP2.pem /grant:r Administrators:(RX,WDAC)
At line:1 char:45
+ icacls .\KP2.pem /grant:r Administrators:(RX,WDAC)
+                                             ~
Missing argument in parameter list.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : MissingArgument
above error i get.
however if i change the command as following snippet, it worked

icacls .\KP2.pem /grant:r Administrator:RX
processed file: .\KP2.pem
Successfully processed 1 files; Failed processing 0 files
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Zvitam's solution is the right solution. Mcknife helped the Author in implementing it.