Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I've had some problems in my server and now I need to give some write-permissions on some folders, but I have a lot of folders to do it.

My server is Windows Server 2008, and if I select all folder make a right-click and properties, there's no tab 'Security' to change permissions, I can do it one by one but I lost much time.

Is there any way to give these permissions on my folder fastly ?

Thank you!

share|improve this question

migrated from stackoverflow.com Jul 5 '11 at 16:08

This question came from our site for professional and enthusiast programmers.

3 Answers 3

up vote 4 down vote accepted

There are some options, although Im surprised selecting a group and right clicking doesnt give you security.. Anyway

Check out icacls.

icacls c:\windows\* /save AclFile /T
- Will save the ACLs for all files under c:\windows
  and its subdirectories to AclFile.

icacls c:\windows\ /restore AclFile
- Will restore the Acls for every file within
  AclFile that exists in c:\windows and its subdirectories.

icacls file /grant Administrator:(D,WDAC)
- Will grant the user Administrator Delete and Write DAC
  permissions to file.

icacls file /grant *S-1-1-0:(D,WDAC)
- Will grant the user defined by sid S-1-1-0 Delete and
  Write DAC permissions to file.
share|improve this answer
1  
No, pitfal is that it does not shows Security tab when selecting group of files and/or folders. –  Krom Stern Aug 24 '11 at 4:44

VBscript. That's the old school Windows way.

Server 2008 comes with Powershell. Try that.

share|improve this answer

You can use my scripts for automating this task:

https://sourceforge.net/u/gavenkoa/utils/ci/tip/tree/win/uac/

Put both script to directory and run uac.js. For all hierarchy belong this directory scripts restore ownership and grand full access for All.

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.