Windows – Change Windows 7 file permissions from command prompt

command linepermissionswindows 7

How can I change Windows 7 file permissions using the command prompt?

I want to change permissions in program files, but cacls is not working for me.

Best Answer

cacls is depcriated in Windows 7. You need to use ICACLS instead of cacls.

ICACLS "filename" /grant "Users":F

This command is granting the privileges.