Guest User

Untitled

a guest
Sep 19th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. @echo off
  2.  
  3. echo 1. Forwarding Mode
  4. echo 2. Reset to Dynamic
  5. echo;
  6. set /P choice=Apply Profile:
  7.  
  8. if %choice%==1 goto ptfwd
  9. if %choice%==2 goto reset
  10.  
  11. :ptfwd
  12. netsh interface ip set address name="Local Area Connection" source="static" address="192.168.1.5" mask="255.255.255.0" gateway="192.168.1.1"
  13. netsh interface ip set dnsserver name="Local Area Connection" source="static" address="192.168.1.1"
  14. goto exit
  15.  
  16. :reset
  17. netsh interface ip set address name="Local Area Connection" source=dhcp
  18. netsh interface ip set dnsserver name="Local Area Connection" source=dhcp
  19. goto exit
  20.  
  21. :exit
  22.  
  23. @echo on
Add Comment
Please, Sign In to add comment