Scripts Thread, Home Area Permissions in Coding and Web Development; I do this by logon script under the students OU. Works fine for correcting students as they logon, but not ...
21st May 2012, 02:27 PM #16
- Rep Power
I do this by logon script under the students OU. Works fine for correcting students as they logon, but not so great for correcting any historic data you may have.
The script runs once to correct the permissions and write a dummy text file to check for in future logons to save the hassle of recorrecting the perms every time.
\\server\share$ would be the name and share of the home folder location
domain\group would be your domain and group name you either want to add or remove.
If exist "\\server\share$\%username%\logon.txt" goto exit
REM Apply correct security settings to students folders
xcacls \\server\share$\%username% /t /c /g %username%:f "domain\administrator group":f "creator owner":f system:f /y
REM remove groups from folders
xcacls \\server\share$\%username% /e /t /r "domain\group"
Date /t >\\server\share$\%username%\logon.txt
IDG Tech News
By mac_shinobi in forum Wireless Networks
Last Post: 21st May 2008, 01:36 PM
By markcuk in forum How do you do....it?
Last Post: 25th April 2007, 11:38 AM
Last Post: 25th January 2007, 04:42 PM
By crc-ict in forum Windows
Last Post: 7th December 2006, 09:29 PM
By luke213 in forum Windows
Last Post: 16th June 2006, 10:28 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)