Skip to content

Instantly share code, notes, and snippets.

@atilaromero
Last active November 5, 2020 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atilaromero/e5edb6e22dd90d5156c5c113b8e3ff62 to your computer and use it in GitHub Desktop.
Save atilaromero/e5edb6e22dd90d5156c5c113b8e3ff62 to your computer and use it in GitHub Desktop.
take windows folder ownership
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