Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save buendias-dev/3af83227dde2d872511d3d83a3f9bda5 to your computer and use it in GitHub Desktop.
Save buendias-dev/3af83227dde2d872511d3d83a3f9bda5 to your computer and use it in GitHub Desktop.
Reset NTFS permissions
@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