Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :: REED, 2/9/2019. Useful for taking control of windows components you need to manually rip out.
- @echo !!!RUN THIS BATCH AS ADMINISTRATOR!!!
- @echo off
- set /p FileVar=Enter full path of folder you want to take over:
- takeown /a /r /d Y /f %FileVar%
- icacls %FileVar% /grant %username%:F /t
- CACLS %FileVar% /r /p %username% F
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement