Set permission for Redirected Folders in bulk

If your environment needs multiple shares to store Redirected Folders. Such as a school environment, if they want split up every class or year .. Set permissions to these folders can be time consuming task. Then this script comes in handy:

CommandLine = "cscript d:\tmp\XCACLS.vbs D:\tmp\01 /g everyone:1386 /spec a"
CommandLine2 = "cscript d:\tmp\XCACLS.vbs D:\tmp\01 /g ""creator owner"":f system:f ""domain admins"":f /e"
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "CMD /K " & CommandLine
WshShell.Run "CMD /K " & CommandLine2

More info about XCACLS:

Set permissions for Redirected Folders: