Guest User

Untitled

a guest
Feb 18th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. c:\RespMv>type x.bat
  2. reg add "HKU\**\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr
  3. oxyEnable /t REG_DWORD /d 1 /f
  4. reg add "HKU\**\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr
  5. oxyServer /t REG_SZ /d "192.168.0.87:1" /f
  6. reg add "HKU\**\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr
  7. oxyOverride /t REG_SZ /d "<local>" /f
  8.  
  9. C:\RespMv>wmic useraccount get sid > f.txt
  10.  
  11. C:\RespMv>type f.txt
  12. SID
  13. S-1-5-21-726440912-1910258724-2457818750-500
  14. S-1-5-21-726440912-1910258724-2457818750-501
  15. S-1-5-21-726440912-1910258724-2457818750-1003
  16. S-1-5-21-726440912-1910258724-2457818750-1002
  17. S-1-5-21-726440912-1910258724-2457818750-1000
  18.  
  19. C:\RespMv>
  20.  
  21. Here i want read the File: f.txt line by line,
  22.  
  23.  
  24. Each line would be inserted on x.bat File replacing the ** by each line, first time the file x.bat (after replacements) is:
  25.  
  26. reg add "HKU\S-1-5-21-726440912-1910258724-2457818750-500\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr
  27. oxyEnable /t REG_DWORD /d 1 /f
  28. reg add "HKU\S-1-5-21-726440912-1910258724-2457818750-500\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr
  29. oxyServer /t REG_SZ /d "192.168.0.87:1" /f
  30. reg add "HKU\S-1-5-21-726440912-1910258724-2457818750-500\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v Pr
  31. oxyOverride /t REG_SZ /d "<local>" /f
  32.  
  33. and then execute the file x.bat
  34.  
  35. and read the next line of the f.txt file....
  36.  
  37. thanks any advice?
Add Comment
Please, Sign In to add comment