Last active
November 5, 2020 13:40
-
-
Save atilaromero/e5edb6e22dd90d5156c5c113b8e3ff62 to your computer and use it in GitHub Desktop.
take windows folder ownership
This file contains hidden or 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
psexec /s /i cmd | |
takeown /R /SKIPSL /A /D Y /F %1 | |
cacls %1 /T /grant administrators:F /L |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment