Thursday, 22 November 2012

Assign User permissions to user's folders


for /f "delims=" %%f in ('dir /b d:\pst') do call :PROCESS %%f

goto :EOF



:PROCESS
set host=%1

cacls "d:\PST\%host%" /T /E /G "xeht\%host%":f



:Exit


No comments:

Post a Comment