Saving and restoring ACL’s on OU’s

Saving and restoring ACL’s on OU’s

/ / /

Saving and moving OU ACLs

I’ve written a batch file that will move ACLs from one OU to another. It works by you outputting the results of a ACL from a OU to a text file, specifying the new OU in a batch file and inputting the text file you just created. I use three utilities to accomplish this: adfind.exe, sed.exe and dsacls.exe.
The command to save the text file is:

From here, you need to delete the header in the text file and the footer.
Once that is done, run this script, changing the two variables at the top:

Post a Comment

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.