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

Recently someone made a change to the permissions in one of our directories. This effected every user. There must be a script to fix this all at once instead of one by one.

What changed: the users need full control over their own folders, files and sub folders. This was changed from full control to no rights at all. There are over 800 users. Ideas?

share|improve this question

You can use get-acl and set-acl in PowerShell to set permissions on each directory recursively. A better bet might be to just restore from backup.

There is no "oh shit, I shouldnt have done that" script laying around that's already custom tailored for your environment. If you don't have a good backup and you aren't familiar with scripting, then I'd get to learning pretty quickly.

share|improve this answer

You can back up and restore permissions easily with SetACL.

share|improve this answer
Not if the damage is already done. – MDMarra Apr 11 '12 at 10:44
MDMarra: In that case you can re-set the desired permissions easily with SetACL, too. – Helge Klein Apr 11 '12 at 14:26

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.