Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  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. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement