icacls is giving access denied on remote file system
Run Windows Command Prompt as administrator and then run:
takeown /R /F file1.txt
icacls file1.txt /t /c /GRANT Everyone:F
It works with folders as well.
Run Windows Command Prompt as administrator and then run:
takeown /R /F file1.txt
icacls file1.txt /t /c /GRANT Everyone:F
It works with folders as well.