Created
March 26, 2022 14:28
-
-
Save denisdemaisbr/d642fc0e1d1582da52bdcf61e6dc900f to your computer and use it in GitHub Desktop.
how reset windows ntfs permissions (be careful)
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
@echo off | |
echo "be careful this can explode your disk" | |
echo "hit enter to continue" | |
pause | |
d: | |
cd d:\docs | |
takeown /r /f * | |
ICACLS * /T /Q /C /RESET | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment