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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 11 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  
+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
2  
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) support.microsoft.com/en-us/kb/243330 – Nux Oct 16 '15 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

 
discard

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.