I want to deny permission to mentioned folder for current user to access,modify,read. Using icacls. icacls C:\Users\%username%\AppData\Local\Mozilla\updates /q /c /t /deny users:F But i am getting error "The system cannot find the path specified"
Can anyone help me in this regards.
Since you didn't provide much information, so my answer will be a guess.
It obviously means the path does not exist. However, there is one exception: paths with space. To let
cmdandbatch fileproperly handle space, you will need to"quote"them. And, as @Mofi mentioned that it could be that the user's profile directory is notC:\Users\%USERNAME%So my best guess to fix both problems, you should change the command to:
or this better solution suggest by @Mofi: