1

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?

EEAA
  • 109,904
Jill
  • 11

2 Answers2

2

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.

MDMarra
  • 101,023
0

You can back up and restore permissions easily with SetACL.

Helge Klein
  • 2,121