Created
April 22, 2023 11:18
-
-
Save buendias-dev/3af83227dde2d872511d3d83a3f9bda5 to your computer and use it in GitHub Desktop.
Reset NTFS permissions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SET DIRECTORY_NAME=%1% | |
@ECHO reseteando %DIRECTORY_NAME% | |
@PAUSE | |
TAKEOWN /f %DIRECTORY_NAME% /r /d s | |
ICACLS %DIRECTORY_NAME% /grant administrators:F /t | |
ICACLS %DIRECTORY_NAME% /reset /T | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment