I'm trying to give full access (read, write) to a specific folder to all users on Windows 7. The problem is that I don't know how to do that using icacls.
I'm trying to give full access (read, write) to a specific folder to all users on Windows 7. The problem is that I don't know how to do that using icacls.
Open command window and type
c:\windows\system32\icacls /?
Only these two answers worked for me:
In an Administrator Command Prompt:
(OI)
is for future files and(CI)
for future folders.This worked for me:
Step 1 - Open cmd window with admin privileges
Step 2 - to take ownership of contents of "picts" directory takeown /f C:\picts* /r
Step 3 - to change permissions to "everyone" of contents of "picts" directory icacls C:\picts /grant Everyone:F /t
Open administrator command prompt. And run
where FOLDER_PATH can be:
grantAccess.cmd file content is: