General Chat Thread, Script to change folder permissions in General; I currently have our current domain and a new domain running with a new way trust!
What I want to ...
14th January 2008, 05:46 PM #1
Script to change folder permissions
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.
IDG Tech News
15th January 2008, 09:52 AM #2
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 permissions
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.
By Jamie_a in forum Windows
Last Post: 17th December 2007, 04:20 PM
By DaveP in forum Windows
Last Post: 7th March 2007, 01:57 PM
By e_g_r in forum Windows
Last Post: 16th February 2007, 06:48 PM
Last Post: 23rd November 2006, 10:33 PM
By ajbritton in forum Windows
Last Post: 16th November 2005, 05:59 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)