Skip to content

Instantly share code, notes, and snippets.

@matthiasbaldi
Created December 5, 2021 12:33
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 matthiasbaldi/c26f7fbf80dd6dc79da5c905918c7afd to your computer and use it in GitHub Desktop.
Save matthiasbaldi/c26f7fbf80dd6dc79da5c905918c7afd to your computer and use it in GitHub Desktop.
Cleanup Windows
takeown /F "C:\Windows.old" /A /R /D Y
icacls "C:\Windows.old" /T /grant administrators:F
rmdir /s /q "C:\Windows.old"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment