2023-02-15 19:05:06 +01:00
|
|
|
@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
|
|
|
|
|
2023-02-16 12:45:08 +01:00
|
|
|
echo.
|
2023-02-15 19:05:06 +01:00
|
|
|
echo ####### %0 #######
|
|
|
|
|