Discussion Locked

Automate the process of creating permis

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
ON my NT Server i used a third-party software called DumpSec to dump all my sharing & permissions i had on my server. now i want to automate the process of creating permission. i have about 100 folders with different permissions. how do i create these permission . is there any utility where you just import the comma seperated value (CSV) & just create the permission ?

1 reply

by joseph moore

Well, you can use XCACLS.EXE from the Resource Kit to modify security (NTFS) permissions.
You can't just specify a CSV for it to run against; you have to specify what and who and what kind of permissions, but it does take wildcards.
For example, if you had a directory d:\home with 4 sub-directories, A, B, C, D, you could set up in a single BAT file to specify who gets what permissions per folder. YOu could then go into the folders with wildcards to hit anything in them also. Like this:
xcacls d:\home\a /T /G USERA:F /C /Y
xcacls d:\home\b /T /G USERB:C /C /Y
xcacls d:\home\c /T /G USERC:RW /C /Y
xcacls d:\home\d /T /G USERD:D /C /Y

So, that would give user A Full Control to directory A and all subdirectories. UserB has Change to B directory and subdirectories; UserC has read/write to directory C; and user D has delete to directory D. None of them have rights to any of the other folders.
You can append rights to folders/files, and even Revoke user rights to stuff.

Hope this helps.

This discussion is closed to new replies.