I currently have our current domain and a new domain running with a new way trust!
What I want to do is add the new domain permissions on to the folder.
For example a shared area might have 3 permissions on it currently
I want the script to copy the username/group and put our new domain credentials on
Is there a script I could use to do this or otherwise it will be alot of work going through each folder and adding the new permission
Scott@Stamford Endowed Schools
Last edited by scottyses; 14th January 2008 at 08:28 PM.
You could try this. I would try it on dumy folders first before you do it on the live folders just incase! I didnt do this once and regreted it.
This line adds the username of the folder into the permissionsCode:for /D %%i in (*) do ( calcs %%i /T /P /G STAMFORD\S-Staff:f cacls %%i /T /E /G STAMFORD\JLBloggs:f cacls %%i /T /E /G STAMFORD\MLBloggs:f )
cacls %%i /T /E /G mcc\%%i:f
So if the folder is called MLBloggs and the logonname is MLBloggs then it will give it permissions over it.
Hope this helps.
There are currently 1 users browsing this thread. (0 members and 1 guests)