Link to home
Start Free TrialLog in
Avatar of salkeiz
salkeiz

asked on

icacls syntax in W2K3 Server

I am running W2K3 Server and I need to grant multiple users (several hundred) Full control to their individual home folder.  Each person  currently has modify rights.  The path to the folders are \\<Server>\Students\<gradyr>\<student-folder>.   I want to be able to use icacls to modify all of the individual student folders at once.  Can someone please give me the syntax I need to use?  I am horrible at any kind of scripting.
ASKER CERTIFIED SOLUTION
Avatar of salkeiz
salkeiz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of salkeiz
salkeiz

ASKER

for /f "tokens=1-3 delims=_" %%a in ('dir /b \\server\Students\gradyr') do icacls "\\server\students\gradyr\%%a_%%b_%%c" /grant:r athena\%%c:(OI)(CI)F