daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Mar 21st, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for /l %%x in (1, 1, 1000) do (
  2.  
  3. echo %%x
  4.  
  5. takeown.exe /R /A /F "\fileservershare" /D N
  6. echo Finished takeown >> C:Loopy.txt
  7. icacls.exe "\fileservershare" /grant "DomainGroup":F /grant "DomainGroup":R /T /C
  8. echo Finished icacls >> C:Loopy.txt
  9. echo Loop %%x >> C:Loopy.txt
  10.  
  11. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top