Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

share|improve this question

3 Answers 3

up vote 8 down vote accepted
c:\windows\system32\icacls c:\folder /grant "domain\user":(OI)(CI)M
c:\windows\system32\icacls c:\folder /grant "everyone":(OI)(CI)M
c:\windows\system32\icacls c:\folder /grant "Authenticated Users":(OI)(CI)M

Open command window and type c:\windows\system32\icacls /?

share|improve this answer
+1. Depending on context, (OI)(CI)F (full access) might be preferable to (OI)(CI)M (read/write access). – Harry Johnston Nov 29 '11 at 2:15
Alas, cut and paste fom one of my scripts :-) M = Modify which is fine for most users, F will give them everything – BoBo Nov 29 '11 at 6:45
Note that you will NOT be able to use "everyone" and other groups on localized Windows (English names are only available on English Windows). So you might want to use one of SID (e.g. "everyone" is "*S-1-1-0" -- take note of the use of use star before SID) – Nux Oct 16 at 12:36

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

share|improve this answer

Only these two answers worked for me:

In an Administrator Command Prompt:

C:\Windows\System32>takeown /r /d y /f f:\backup
C:\Windows\System32>icacls f:\backup /t /grant Everyone:(OI)(CI)F

(OI) is for future files and (CI) for future folders.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.