15 lines
268 B
Batchfile
15 lines
268 B
Batchfile
@echo off
|
|
|
|
set TOOLS=c:\tools
|
|
|
|
echo ####### %0 #######
|
|
|
|
takeown /F %TOOLS% /R /A /D Y 1>nul
|
|
icacls %TOOLS% /inheritance:r
|
|
icacls %TOOLS% /grant Administrators:F /t /c /l 1>nul
|
|
icacls %TOOLS% /grant Users:RX /t /c /l 1>nul
|
|
|
|
echo.
|
|
echo ####### %0 #######
|
|
|