w10install/scripts/set-permissions.cmd
Michael H.G. Schmidt 1a89bb1ebc hardcoding removsal
2023-02-20 09:24:42 +01:00

15 lines
279 B
Batchfile

@echo off
set TOOLS=%SystemDrive%\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 #######