Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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

2 Answers 2

up vote 7 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

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

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.