2023-02-15 19:05:06 +01:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
set TOOLS=c:\tools
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|
2023-02-17 12:32:13 +01:00
|
|
|
takeown /F c:\*.txt /A 1>nul
|
|
|
|
icacls c:\*.txt /inheritance:r 1>nul
|
|
|
|
icacls c:\*.txt /grant Administrators:F 1>nul
|
|
|
|
icacls c:\*.txt /grant Users:RX 1>nul
|
2023-02-15 19:05:06 +01:00
|
|
|
|
2023-02-16 12:45:08 +01:00
|
|
|
echo.
|
2023-02-17 12:32:13 +01:00
|
|
|
echo working on folder [ %TOOLS% ] ...
|
2023-02-15 19:05:06 +01:00
|
|
|
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 #######
|
|
|
|
|