Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for /l %%x in (1, 1, 1000) do (
- echo %%x
- takeown.exe /R /A /F "\fileservershare" /D N
- echo Finished takeown >> C:Loopy.txt
- icacls.exe "\fileservershare" /grant "DomainGroup":F /grant "DomainGroup":R /T /C
- echo Finished icacls >> C:Loopy.txt
- echo Loop %%x >> C:Loopy.txt
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement